GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

03Touch-swipe comparison slider

Touching the slider calls setPointerCapture to lock onto that finger, so the divider keeps tracking even if it slides past the slider's edge and never fights the page scroll.

Best forA mobile shop product detail page, a review page viewed inside Instagram's in-app browser

touch-action:nonesetPointerCapture48px 터치 영역
Touch-swipe comparison slider
Open in a new tab

03 Touch-swipe comparison slider — Measured area 12.826% · moving frames 17/23Original by GODRICH · SCSS and React ship in the zip · 9 Before After Slider UIs — Drag to Compare

The post this demo lives in

9 Before After Slider UIs — Drag to Compare - preview of all 9 demos9 Before After Slider UIs — Drag to CompareA before after slider stacks two photos and splits them at a line you can move, so before and after show side by side. T See all demos in this post

If you like this effect - similar demos