3D CSS image slider works well on device 🤙
jhey ʕ•ᴥ•ʔ
在 X 上查看@jh3yy15万 位关注者
173,088 次观看
3D CSS image slider works well on device 🤙
li {
--item-width: clamp(120px, 20vmin, 12rem);
--radius: calc(
(var(--item-width) / sin(var(--inner-angle))) * -1
);
}
It's cool how you can use a clamped value with "calc"
10 条评论
评论来自 X (Twitter) 上的原帖

@JohnPhamous
so good
2 个赞

@warkentien2
First thing that came to mind. That feedback is 🤌🏻
2 个赞

@ezzato_
That is actually useful. Put this into my bucket of things to look into. Great work!
1 个赞

@max_chechel
Insane! 🤩 But it’s only for Chrome, right?
1 个赞

@jh3yy
Yep – But I updated the demo so it falls back to using GSAP ScrollTrigger if the browser doesn't support CSS scroll animations 🤙
1 个赞

@KumailNanji
This is dope 🔥
1 个赞

@fredkisss
WoW

@AI_Joe_
Dope 👌

@codingmickey
absolute beauttty

@TyroneC__
That is so incredible! Might use that for my page 🔥 Thanks for sharing!