正在加载视频...
视频加载失败
dynamic 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 🤙
15 条评论

This looks nice, but from a UX perspective I don't want the interface changing. It should be visible for the user to easily discover there are more options with meaning.

for sure - don't doubt it 💯 was more so for the challenge of making it without scripts and using a radio button 🤙 saw this patterns as an action as well and don't think it's a good use case

Your stuff is starting to look out of a Minority Report scene. Mesmerizing.

Jenius! I wonder if this can be scaled for more than two items :P

Can we have code ?

neat

Gotta use it fr

Can we have a playground for this 👀

Love this

Loved it but do you think with framer motion it feels more natural as it has spring animations ?

pure css only Jhey? 😍

that's the one ✅🧑🍳 tricky part was working out a way to transition the premium indicator - so what I did was make it the little dot and then morph it up

I noticed that 😍 so sleek!

Your design choices feel intentional and smart! 💎✨️

Bonito demais sooo!!
