Skip to main content
CSS Tip

A Spring Connector Using Anchor Positioning and border-shape

After the low-quality Zig-Zag connector, here is a more robust one: a spring connector. Another fun demo powered by Anchor Positioning and border-shape

A CSS-only spring connector

Drag the circles and see how the shape behaves. Go wild with this one; it won't break!

⚠️ Chromium-only for now ⚠️

See the Pen Spring connector (drag the circles!) by Temani Afif (@t_afif) on CodePen.


More CSS Tips