extra little details™
jhey ʕ•ᴥ•ʔ
在 X 上查看@jh3yy15万 位关注者
61,519 次观看
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 条评论
评论来自 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 个赞

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

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

@riaad_arif
This is pure talent! 🌟
2 个赞

@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!