Video wird geladen...
Video konnte nicht geladen werden
Making simple ✨scroll-adaptive✨ header
17,969 Aufrufe • vor 1 Jahr •via X (Twitter)
10 Kommentare

Ryan Zaynevor 1 Jahr
Here's a hook that does the same, but with an intersection observer instead of a scroll event, for perf😁

Alfon*vor 1 Jahr
Great work!

Kamenskikh Dmitriyvor 1 Jahr
Use this: animation-timeline: scroll(); animation-name: changeHeaderColor; animation-range: 0px 1px; animation-fill-mode: forwards; Instead of js scroll tracking

Thread Rippervor 1 Jahr
useEffect + ref ?? bro?

Alfon*vor 1 Jahr
i want to see you do better lmao

ojivor 1 Jahr
screen video pake apa bg

Alfon*vor 1 Jahr
@screenstudio kak

Kamerr Ezzvor 1 Jahr
I like the idea, I will put it in my next project.

Sujoyvor 1 Jahr
I build this feature using states to track and apply scroll conditions with tailwind here =>

Alfon*vor 1 Jahr
Interesting, Nice!
