Add example
This commit is contained in:
@@ -124,3 +124,7 @@ body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.pswp-ente .pswp__preloader--active .pswp__icn {
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
@@ -342,6 +342,15 @@ export class FileViewerPhotoSwipe {
|
||||
});
|
||||
});
|
||||
|
||||
// Modify the default UI elements.
|
||||
pswp.addFilter("uiElement", (element, data) => {
|
||||
if (element.name == "preloader") {
|
||||
// TODO(PS): Left as an example. For now, this is customized in
|
||||
// the CSS.
|
||||
}
|
||||
return element;
|
||||
});
|
||||
|
||||
// Initializing PhotoSwipe adds it to the DOM as a dialog-like div with
|
||||
// the class "pswp".
|
||||
pswp.init();
|
||||
|
||||
Reference in New Issue
Block a user