Post

A fun CSS-only experimentation using modern features (anchor positioning, @​property, :has(), and more!) Code & Demo: css-tip.com/bouncy-input/ Is it useful? Probably not. Is it cool? Yes! #CSS #codepenchallenge

12 reposts116 likes

Anchor positioning feels like magic until you realize it’s just teaching the browser where to anchor. Try adding `position: absolute` to the tooltip and `anchor-name: --tooltip` to the anchor. The easing curve here stops the stutter: cubic-bezier(0.4, 0, 0.2, 1).