Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Making simple ✨scroll-adaptive✨ header

17,969 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von Ryan Zayne
Ryan Zaynevor 1 Jahr

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

Profilbild von Alfon*
Alfon*vor 1 Jahr

Great work!

Profilbild von Kamenskikh Dmitriy
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

Profilbild von Thread Ripper
Thread Rippervor 1 Jahr

useEffect + ref ?? bro?

Profilbild von Alfon*
Alfon*vor 1 Jahr

i want to see you do better lmao

Profilbild von oji
ojivor 1 Jahr

screen video pake apa bg

Profilbild von Alfon*
Alfon*vor 1 Jahr

@screenstudio kak

Profilbild von Kamerr Ezz
Kamerr Ezzvor 1 Jahr

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

Profilbild von Sujoy
Sujoyvor 1 Jahr

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

Profilbild von Alfon*
Alfon*vor 1 Jahr

Interesting, Nice!

Ähnliche Videos