Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

What if the scrollbar went around the corner? 👀 CSS could do that ✨

846,918 Aufrufe • vor 2 Jahren •via X (Twitter)

10 Kommentare

Profilbild von jhey ▲🐻🎈
jhey ▲🐻🎈vor 2 Jahren

Don't be put off by the JavaScript 😅 It's there for generating SVG paths, etc. based on updated user configuration 🤙 It's also there to cover where CSS scroll-driven animations don't work ✨

Profilbild von Anatoly Lobkov
Anatoly Lobkovvor 2 Jahren

When at the top of a list, the user may not understand the meaning of the small white circle until they interact. But at the same time, what prevents us from supporting the evolution of user experience hehehe

Profilbild von jhey ▲🐻🎈
jhey ▲🐻🎈vor 2 Jahren

Magic here is that scroll-snap means it won't sit in the circle mode 😎 That only appears when you scroll past the snap points ✨

Profilbild von Ritika Agrawal
Ritika Agrawalvor 2 Jahren

🤯 The code please!

Profilbild von Dany
Danyvor 2 Jahren

Ok devs stop everything you're building and make this industry standard.

Profilbild von Shubham Verma🌱
Shubham Verma🌱vor 2 Jahren

If you ever release a in-depth advanced css course, I'd get it within a minute. Absolute🐐

Profilbild von Álvaro Montoro
Álvaro Montorovor 2 Jahren

stroke-dashoffset with scroll-driven animations?

Profilbild von jhey ▲🐻🎈
jhey ▲🐻🎈vor 2 Jahren

Will clean up the code and get it out there 🤙 Pretty much yeah, some scroll-snap, scroll animation, and SVG 😎

Profilbild von Artur Bień
Artur Bieńvor 2 Jahren

Nice! One missing detail - the scrollbar thumb should get thicker as it shrinks 🤓

Profilbild von jhey ▲🐻🎈
jhey ▲🐻🎈vor 2 Jahren

Yeah, didn't like that detail so skipped it out 😅 Seems I wasn't the only one. Might add it as an option. Jus requires adding stroke-width into the keyframe ✨ Was more concerned with hacking something up that would work responsively in the end 😁

Ähnliche Videos