Software Developer @Pineway | Prev @Hashnode
Just a normal guy who loves tech, food, coffee and video-games.
Markdown supported · ⌘↵ to post
Hey Amar I am new here I have read your blog for first times really the information you shares is amazing !!
Nice approach Ammar Mirza !. We did evaluate using framer at the time when implementing but resorted to vanilla js since we didn't want to add one more additional dep. But the DX with framer is more intuitive ✨
Ammar Mirza
klement Gunndu
Using useMotionValueEvent to track scroll direction instead of raw scroll listeners is much cleaner — the threshold-based show/hide avoids the flicker you get with naive implementations.