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

02Kanban card — inverting pointer Y ratio into a target column and insertion index

Finding which column's getBoundingClientRect currently contains the pointer picks the target column, and comparing the pointer's Y against each card's midpoint inverts that into an insertion index. The array splice only fires the moment the column actually changes; inside the same column only the preview shifts.

Best forKanban boards, issue trackers

pointermovegetBoundingClientRecttransition
Kanban card — inverting pointer Y ratio into a target column and insertion index
Open in a new tab

02 Kanban card — inverting pointer Y ratio into a target column and insertion index — Measured area 25.115% · moving frames 7/23Original by GODRICH · SCSS and React ship in the zip · Drag to Reorder UI: 9 Lists, One Drop Index

The post this demo lives in

Drag to Reorder UI: 9 Lists, One Drop Index - preview of all 9 demosDrag to Reorder UI: 9 Lists, One Drop IndexDrag to reorder UI: Computing the drop index from pointer position reorders lists, kanban boards and grids -- with long- See all demos in this post

If you like this effect - similar demos