Post
reminded of this one after someone said about doing the one from yesterday "CSS only" there's nuance 1. the one from yesterday has a lazy effect whereby the ends move at different speeds 2. you can't use CSS anchor with a clip-path 3. mix-blend-mode won't get the style bsky.app/profile/jhey...
lazy exclusion tabs using CSS :has() 🐐 transition custom properties for a clip-path give one a slight delay .track { clip-path: inset(0 var(--x2) 0 var(--x1)); transition: --x1 0.2s, --x2 0.2s 0.1s; } .tabs:has(input:nth-of-type(1):checked) .track { --x1: 0; --x2: 89%; } (trick in video 🚀)
0 reposts12 likes