diff options
| author | Eltrac <hi@guhub.cn> | 2025-09-18 18:54:52 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-18 18:54:52 +0800 |
| commit | 2afcb97eeab22b2ae7b3dc697e0cfab318aa0722 (patch) | |
| tree | 9a101095d390ea3a336427e295210d11eab824f3 /README.md | |
| parent | d26860e424227003122b077c8d2e76223d760e67 (diff) | |
| parent | 7113655e17a38d9d73cffe469c28b6ddf5b0636f (diff) | |
Merge pull request #2 from QuarkPixel/master
Fix Multiple UI/UX Issues and Improve Configuration Management
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -41,12 +41,24 @@ You can configure Libra.js by passing an object to the constructor. The defaults ```js new LightBox({ - selector: '[data-libra]', // Selector for images to be lightboxed - margin: 50, // Margin around the lightbox - offset: { x: 0, y: 0 } // Offset for the lightbox position + selector: "[data-libra]", // Selector for images to be lightboxed + margin: 50, // Margin around the lightbox + offset: { x: 0, y: 0 }, // Offset for the lightbox position + transitionDuration: 200, // Animation duration in milliseconds + imageCursor: "zoom-in", // Cursor style for hoverable images }); ``` +### Z-index Configuration + +Z-index values are managed through CSS classes for better maintainability: + +- `.libra-overlay.libra-visible`: z-index 900 (overlay when visible) +- `.libra-overlay.libra-hidden`: z-index -100 (overlay when hidden) +- `.libra-shadow`: z-index 1000 (shadow image) + +You can customize these values by overriding the CSS classes in your own stylesheet. + ## Development ``` |
