Loading video...

Video Failed to Load

Go Home

Making simple ✨scroll-adaptive✨ header

17,969 views • 1 year ago •via X (Twitter)

10 Comments

Ryan Zayne's profile picture
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*'s profile picture
Alfon*1 year ago

Great work!

Kamenskikh Dmitriy's profile picture
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 Ripper's profile picture
Thread Ripper1 year ago

useEffect + ref ?? bro?

Alfon*'s profile picture
Alfon*1 year ago

i want to see you do better lmao

oji's profile picture
oji1 year ago

screen video pake apa bg

Alfon*'s profile picture
Alfon*1 year ago

@screenstudio kak

Kamerr Ezz's profile picture
Kamerr Ezz1 year ago

I like the idea, I will put it in my next project.

Sujoy's profile picture
Sujoy1 year ago

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

Alfon*'s profile picture
Alfon*1 year ago

Interesting, Nice!

Related Videos