summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2026-02-10doc: document config options with commenteltrac
2026-02-10feat: add config 'zeroMarginBreakpoint'eltrac
2025-12-02fix: remove `cursor: pointer` - `.libra-overlay` having `cursor: pointer` casuesEltrac
blank area to be "clickable", which can be very confusing. Though `.libra-overlay` is clickable, it's already intuitive to click blank area to dismiss lightbox, hence pointer is not needed. - `.libra-shaodw` is not technically clickable thus should not have this attribute.
2025-09-18refactor: avoid repetitionEltrac
Since we are constantly adjusting shadow's positions and fetching original positions, encapsulate them into functions.
2025-09-18refactor: avoid repeating animation logicEltrac
2025-09-18style: consistent unit assignmentEltrac
2025-09-18fix: missing transition when closingQuarkPixel
2025-09-18fix: display nothing when image not fully loadedQuarkPixel
2025-09-18fix: viewport change causes animation position errorQuarkPixel
2025-09-18feat(config): make libra more customizable through config.js andQuarkPixel
libra.css
2025-09-17fix: lightbox does not close when moving on touchscreenEltrac
2025-09-17feat: configurable offsetEltrac
2025-09-17refactor: new config classEltrac
2025-09-17refactor: less 'if'sEltrac
2025-09-17fix: did not add 'open' class to open shadowEltrac
2025-09-17fix: images cannot scale properly if it's smaller than windowEltrac
2025-09-17fix: top, left, with, height attr not set properlyEltrac
Add 'px' unit after top, left, width, height values. Providing a number value might cause some occasional problems.
2025-09-17fix: fix shadow positioning using getBoundingClientRectEltrac
2025-09-16feat: shows zoom-in cursor when hovering on imagesEltrac
2025-09-16refactor: move image handling to shadow classEltrac
- lightbox module no longer handles original image visibility - lightbox module no longer handles shadow placement - lightbox module now only fetch and use shadow object
2025-09-16refactor: rename open/closeLightBox methods shortlyEltrac
2025-09-16refactor: images can be inlineEltrac
- remove block style and max width restraint - images no longer need to be wrapped in a link
2025-09-16refactor: select images directly instead of containerEltrac
2025-09-16refactor: shorter variable nameEltrac
2025-09-16refactor: move animation logic to individual moduleEltrac
2025-09-16fix: unexpected zoom-out animationEltrac
2025-09-16fix: smoother zoom-in animation, more accurate positioningEltrac
2025-09-15refactor: use transform instead of requestAnimationFrameEltrac
2025-09-15chore: remove console logsEltrac
2025-09-15fix: lightbox might be open at unexpected positionEltrac
2025-09-15refactor: rename libo.css to libra.csssEltrac
2025-09-15refactor: rename project to libra, minify outputEltrac
2025-09-15fix: `this.openLightBox` is undefined due to scope issuesEltrac
2025-09-15refactor: clearer code structrueEltrac
2025-09-15feat: add shadow to opened imageEltrac
2025-09-15perf: use `closeCurrent` instead of `closeAll`Eltrac
this reduce time complexity from O(n) to O(1)
2025-09-15feat: close lightbox when scrollingEltrac
2025-09-15feat: blurrier overlayEltrac
2025-09-15fix: exit animation not workingEltrac
delay destruction after animation is played
2025-09-15feat: keyboard shortcutsEltrac
2025-09-15refactor: shadow is no longer a child of overlayEltrac
2025-09-15feat: add margin to lightboxEltrac
2025-09-15feat: quicker transition, cursor pointerEltrac
2025-09-15fix: sometimes images are clipped verticallyEltrac
2025-09-15fix: zoomIn animation not completeEltrac
2025-09-15refactor: click overlay to dismissEltrac
2025-09-15refactor(animation): calculate final statesEltrac
2025-09-15fix: generate truly unique IDsEltrac
2025-09-15feat: correctly close lightboxEltrac
2025-09-15refactor: lightbox ID generation and shadow managementEltrac
Replaces the async SHA-256 based unique ID generation with a synchronous hashCode method in Utility. Refactors LightBox to manage Shadow instances in a local cache instead of querying the DOM, and removes the static find method from Shadow. Also extracts image link wrapping logic into a helper method for clarity.