正在加载视频...

视频加载失败

Making simple ✨scroll-adaptive✨ header

17,969 次观看 • 1 年前 •via X (Twitter)

10 条评论

Ryan Zayne 的头像
Ryan Zayne1 年前

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

Alfon* 的头像
Alfon*1 年前

Great work!

Kamenskikh Dmitriy 的头像
Kamenskikh Dmitriy1 年前

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

Thread Ripper 的头像
Thread Ripper1 年前

useEffect + ref ?? bro?

Alfon* 的头像
Alfon*1 年前

i want to see you do better lmao

oji 的头像
oji1 年前

screen video pake apa bg

Alfon* 的头像
Alfon*1 年前

@screenstudio kak

Kamerr Ezz 的头像
Kamerr Ezz1 年前

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

Sujoy 的头像
Sujoy1 年前

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

Alfon* 的头像
Alfon*1 年前

Interesting, Nice!

相关视频