extra little details™
jhey ʕ•ᴥ•ʔ
Visit on X@jh3yy148K followers
61,519 views
extra little details™
animate a CSS custom property to sync scrollbar-color with the active item ✨
html {
scrollbar-color: oklch(65% 0.3 var(--p)) #0000;
animation: sync;
animation-timeline: --ul;
animation-range: entry 50% exit 50%
}
@keyframes sync { to { --p: 320; } }
8 Comments
Comments from the original post on X (Twitter)

@yebuntu
Do you build this off the dome or do you use resources like mdn when you build stuff strictly with CSS?
3 likes

@jh3yy
straight off the dome 🤙 it's purely from repetition and exploration over the years
4 likes

@imfelquis
Tried to find the codepen but couldn’t find it
2 likes

@riaad_arif
This is pure talent! 🌟
2 likes

@PavleMarinkovi3
sick!

@designgurra
such a fun and awesome detail!

@notcnrad
its little details like this that separate a website from an experience

@jabeztadesse
You're killin' it!