1 / 2
Before/After Image Slider with Clip-Path
This component demonstrates a draggable image comparison slider built by layering two images and dynamically adjusting the `clip-path` property of the top layer using a CSS custom property controlled by JavaScript.
cssjavascriptclip-pathsliderdragimage comparison