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

01Card Rotation Lerped to Drag Distance

Dragging the card sideways tilts it with a rotation angle smoothly lerped to how far it has moved.

Best forRecommendation card deck screen

SWIPE_VELOCITY_THRESHOLD_PX_MSROTATE_LERP_RATIOEXIT_PCT
Card Rotation Lerped to Drag Distance
Open in a new tab

01 Card Rotation Lerped to Drag Distance — Measured area 49.342% · moving frames 6/23Original by GODRICH · SCSS and React ship in the zip · Card Swipe UI: 9 Physics-Based Deck Patterns

The post this demo lives in

Card Swipe UI: 9 Physics-Based Deck Patterns - preview of all 9 demosCard Swipe UI: 9 Physics-Based Deck PatternsNine card swipe ui builds: The instant a release speed misses item 02's threshold, the card springs back like item 03 in See all demos in this post

If you like this effect - similar demos