Jhey ʕ·ᴥ· ʔ@jhey.dev26 Apr 2025dynamic toggle with CSS :has() 🎁 .control:not(:has(:first-of-type:checked)) .indicator { translate: 100% 0; } leverage [type=radio]:checked with :has() to set the visuals 🤙815291
Jhey ʕ·ᴥ· ʔ@jhey.devhere's the @codepen.io 🚀 codepen.io/jh3y/pen/vEE...codepen.ioDynamic Toggle with [type=radio] + :has()...26/4/25, 8:24 pm·6 reposts·64 likes
Peter Cruckshank (he/him)@petecapecod.bsky.social26 Apr 2025Okay what CSS wizardry is this 🧐 Did you send JS out to get coffee? 🤣 Looks super cool 😎