The <luna-image-comparer> component displays a before/after image comparison slider with horizontal and vertical modes.
Paths
/lunadom/components/image-comparer/image-comparer.js Horizontal (Default)
Vertical
Customization
before - Before image elementafter - After image elementvertical - Use vertical slider instead of horizontalposition - Initial percentage position of the slider (0 to 100)--luna-compare-handle-bg - Background color of the slider knob--luna-compare-handle-color - Icon color inside the slider knob--luna-compare-line-color - Color of the divider line--luna-compare-size - Diameter of the slider knob--luna-radius - Border radius applied to the entire component