Skip to main content
CSS Tip

Bouncy radio buttons using modern CSS

A fun CSS-only experimentation using modern features to create bouncy radio buttons. Powered by anchor positioning, @property, :has() selector, and more!

Click for a cool effect!

See the Pen Bouncy input radio! by Temani Afif (@t_afif) on CodePen.

And the horizontal version as well

See the Pen Bouncy input radio II by Temani Afif (@t_afif) on CodePen.

A related article to understand the logic behind the hacky part and the strange cubic-bezier(): Advanced CSS Animation Using cubic-bezier()


More CSS Tips