Scroll driver based on direction-change

#1

Principle Version: 5.9

I have a search bar at the top of my page. When the user scrolls down, pushing the search bar out of view, i’d like to create a driver where, if they switch scroll directions and start scrolling up, then search comes back into view, from top, then remains there for 3 seconds.

Any ideas? links to solutions? or just better search terms for me to try?
Thx!

0 Likes

#2

Can you control where the user is going to stop and start scrolling up?

If so there’s ways you can fake it, in my file I’ve used a hover trigger to move to another screen with the drivers changed so the menu appears on scroll up.

You could do it with ScrollEnd too, as you finish scrolling, go to next screen with the drivers modified to show the menu on scroll up. I haven’t managed to make it work but not sure is because the scroll using the trackpad works differently than with a mouse or the phone drag-scroll.

Here’s the file if you want to take a look.

0 Likes