Position Calculator JavaScript Library Demos

Download Back To CSSScript.Com

Move a target, test edge collisions, and see where the floating element lands.

Placement playground

Drag the anchor or move it with the arrow keys.

Playground boundary
TooltipKeyboard shortcut
Requested positionCalculated position
Movement (x, y)
—
Overflow (requested → calculated)
—
Placement settings
Item offset
Target offset
Stick to edges
Calculation output

Scroll boundary

Scroll to see which rows are fully visible.

Overview
Activity
Files
Notes
History
Archive

Edge collisions

Play to see which edge the ball hits.

Last collision · —