Loading video...
Video Failed to Load
Making simple ✨scroll-adaptive✨ header
17,969 views • 1 year ago •via X (Twitter)
10 Comments

Ryan Zayne1 year ago
Here's a hook that does the same, but with an intersection observer instead of a scroll event, for perf😁

Alfon*1 year ago
Great work!

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

Thread Ripper1 year ago
useEffect + ref ?? bro?

Alfon*1 year ago
i want to see you do better lmao

oji1 year ago
screen video pake apa bg

Alfon*1 year ago
@screenstudio kak

Kamerr Ezz1 year ago
I like the idea, I will put it in my next project.

Sujoy1 year ago
I build this feature using states to track and apply scroll conditions with tailwind here =>

Alfon*1 year ago
Interesting, Nice!
