正在加载视频...
视频加载失败
Making simple ✨scroll-adaptive✨ header
17,969 次观看 • 1 年前 •via X (Twitter)
10 条评论

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

Alfon*1 年前
Great work!

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

Thread Ripper1 年前
useEffect + ref ?? bro?

Alfon*1 年前
i want to see you do better lmao

oji1 年前
screen video pake apa bg

Alfon*1 年前
@screenstudio kak

Kamerr Ezz1 年前
I like the idea, I will put it in my next project.

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

Alfon*1 年前
Interesting, Nice!
