Streaming live at 10am (PST)

Need help with interaction design

Animation doesn’t work out the appearance of a hidden menu (MyBar) when scrolling UP. Menu doesn’t become visible.

Hey @Barsik

You’ve just made minor error of placing your interaction on MyBar instead of Navbar. So basically the mybar is trying to fire this interaction on itself. Switch this out and you should be fine.

Thanks! You helped me solve my problem!

1 Like

Great to know. :thumbsup:

I did not understand anything. I need the MyBar to appear on the page scrolling up (not down)

I can’t do anything. when I scroll up, the animation does not work

You need to apply the interaction to the NavBar like this:

Remove the animation of the MyBar element:

and modify the animation to affect different elements like this:

and you’re good to go:


I need this menu to appear exactly when scrolling up, not down. I prescribed this condition in the animation settings. But these conditions do not work!

Someone help me, please.

Hi @Barsik, just to clarify, you are wanting the white menu to be initially visible on page load? Normally the menu will be hidden or displayed on load, and when the first section on the page becomes visible, you can set the menu to be displayed or not.

Thanks in advance for your info.

I need white menu initially invisible

Hi, so If I understand correctly, you want the MyBar nav (the “white menu”) to be initially invisible, and then as you scroll down, you want this white menu to become visible, and when scrolling back up to the home section, have that menu become invisible again, or do you want the white menu to stay visible on scroll up?

I guess I am still confused as the solution by @aaronocampo seems to do exactly that.

It should be invisible until I scroll down. It should become visible only when I scroll up. Unfortunately it doesn’t work in Webflow(

Hi @Barsik, is this the effect you are trying to accomplish?

That solution requires a little custom code, which is what I think will be needed to get this to work as you wish.


I took this code.

<script src="" type="text/javascript"></script>
<!--[if lte IE 9]><script src="//"></script><![endif]--><script>
// Hide Header on on scroll down
var didScroll;
var lastScrollTop = 0;
var delta = 5;
var navbarHeight = $('header').outerHeight();

    didScroll = true;

setInterval(function() {
    if (didScroll) {
        didScroll = false;
}, 150);

function hasScrolled() {
    var st = $(this).scrollTop();
    // Make sure they scroll more than delta
    if(Math.abs(lastScrollTop - st) <= delta)
    // If they scrolled down and are past the navbar, add class .nav-up.
    // This is necessary so you never see what is "behind" the navbar.
    if (st > lastScrollTop && st > navbarHeight){
        // Scroll Down
    } else {
        // Scroll Up
        if(st + $(window).height() < $(document).height()) {
    lastScrollTop = st;

Added it to the site settings, published it, but it still does not work

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.