This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Brooks Hassig
Posted Jul 07 - Read on Facebook

Hey guys! First time poster / long time lurker here. Got a tiny little question I can't seem to figure out on my own.

I'm trying to get the navbar and top stuff to disappear when the cards are scrolled. This works on the up scroll, but is buggy on the down scroll. What am I doing wrong here?

http://share.framerjs.com/rar41u1o53ws/

17 Comments

Brooks Hassig

(I've never posted because Pietro used to answer all my questions! Miss you around here, man!)

Andrew Pouliot

Looks like a framer bug; it's not sending the scroll events on deceleration.

Loren Baxter

Edit: I'm wrong :P

Andrew Pouliot

Trying to upload a video, but can't put videos in comments, lol.

George Kedenburg III

maybe try attaching the event to the "change:y" of the scrollcomponent's content instead of the scroll event

Andrew Pouliot

George, I don't see that event on Scroll. Can you be more specific?

Brooks Hassig

I actually tried the change:y with no luck

Brooks Hassig

Andrew - per your video, I also noticed the print being weird like that. Maybe there's a better listener I could set up? ScrollEnd? Tried it though..

George Kedenburg III

working on a fixed version right now, gimme 5 min

George Kedenburg III

here's a working version: http://share.framerjs.com/jds3aepltqnq/

George Kedenburg III

let me know if anything is confusing, i can add some comments or explain further

Brooks Hassig

Whoa rad! THIS is why the Framer community rocks. George I'll check it out when I'm home and let you know if I have any questions. 🙏

Brooks Hassig

VERY tricky George! Love it. Sat down and figured out what you did there.

SO scrollY only returns a value while the curser is down. Noted.

George Kedenburg III

Brooks I think the main thing is that Events.Scroll only fires when the user is actively scrolling, not when the scroll momentum is moving the page. I think this is by design but cc Koen to verify that this isnt a bug

Brooks Hassig

I owe you, man, for that sweet solution. Let me know if you ever need anything.

Koen Bok

Yes Scroll is real user interaction, Move (or "change:y") is any move.

Read the entire post on Facebook