Skip to content

Commit

Permalink
Merge pull request #10 from ix-anemoff/slide_effect
Browse files Browse the repository at this point in the history
Sorry for the late reply. LGTM!
The slide customization feature will be released as fast as I can.
  • Loading branch information
blueswen authored Nov 15, 2022
2 parents 223ca0e + ca8c124 commit f172759
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demo-mkdocs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ GLightbox is a pure javascript lightbox library with mobile support.
touchNavigation: true
loop: false
effect: zoom
slide_effect: slide
width: 100%
height: auto
zoomable: true
draggable: true
skip_classes:
skip_classes:
- custom-skip-class-name
auto_caption: false
caption_position: bottom
Expand All @@ -49,6 +50,7 @@ GLightbox is a pure javascript lightbox library with mobile support.
| touchNavigation | true | Enable or disable the touch navigation (swipe). |
| loop | false | Loop slides on end. |
| effect | zoom | Name of the effect on lightbox open. (zoom, fade, none) |
| slide_effect | slide | Name of the effect on lightbox slide. (slide, zoom, fade, none) |
| width | 100% | Width for inline elements and iframes. You can use any unit for example 90% or 100vw for full width. |
| height | auto | Height for inline elements and iframes. You can use any unit for example 90%, 100vh or auto. |
| zoomable | true | Enable or disable zoomable images. |
Expand Down
9 changes: 9 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@
],
"default": "zoom"
},
"slide_effect": {
"title": "Lightbox slide effect",
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
"type": "string",
"enum": [
"slide", "zoom", "fade", "none"
],
"default": "slide"
},
"width": {
"title": "Width for inline elements and iframes",
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
Expand Down

0 comments on commit f172759

Please sign in to comment.