正在加载视频...
视频加载失败
CSS Tip! 📜 You can create scroll indicators with scroll-driven animations 📍 Reveal a shadow, mask the content, etc. .indicator--top { animation: reveal; animation-timeline: scroll(nearest); animation-range: 0 2rem; } @keyframes reveal { 0% { scale: 1 0; }} The trick here is to hook into the scroll position of... show more
99,168 次观看 • 2 年前 •via X (Twitter)
9 条评论

Here's that @CodePen link 🚀 Trying to get some of these demos off the backlog! 😁

The only man safe from AI 👆

OMG amazing use case for scroll() instead of view() — and once again something I never thought about but always wondered how to achieve elegantly. Dude your brain is on another frequency altogether 🌌🧠

Because hiding the scrollbar is SO useful in the first place? Just SHOW IT and stop fucking around.

Wow I have done stuff like this only using ResizeObserver or onScroll Very nice

Hellooo, I want to launch my project, what is the tool you use to record those videos?

This is great stuff!

Amazing stuff man 👏

This would be applicable to horizontal scroll too I'm assuming? I'm looking for something like this for horizontal tabs on smaller screens.
