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

03Sort Transition That Slides by a Calculated Distance From Its Old Position

Changing the sort order calculates each comment's vertical distance between its old and new position, and comments passing each other briefly step aside so they never overlap mid-move.

Best forToggle button for popular vs. newest sort

SORT_FLIP_DURATION_MSsrt__itemapplySort
Sort Transition That Slides by a Calculated Distance From Its Old Position
Open in a new tab

03 Sort Transition That Slides by a Calculated Distance From Its Old Position — Measured area 21.874% · moving frames 7/23Original by GODRICH · SCSS and React ship in the zip · Comment Section UI: 9 Thread List Patterns

The post this demo lives in

Comment Section UI: 9 Thread List Patterns - preview of all 9 demosComment Section UI: 9 Thread List PatternsThe pixels a deleted comment used to fill become exactly how far the rows below rise, and reply indentation pulls its wi See all demos in this post

If you like this effect - similar demos