Build a reusable before/after image slider with Stimulus
SMRTR summary
Build a before/after image slider with Stimulus using a wrapper, two absolutely positioned images, and a draggable handle. Dragging updates the slider position and clips the "after" image via clip-path.
SMRTR provides this summary for quick context. The original article belongs to Daily.dev.
Read the original article