@brasspetals
Posted
Hi, Trevor! Congrats on completing another solution!
If you use window.scrollY>=400
rather than window.scrollY=400
in your scroll event listener, it should work. Remember, one equals sign is not "equality" in JS. While using "===" should also work, the behavior you're really going for is to have the mobile menu move back up if the user has scrolled up to or past 400, so I think >=
is better used here.
Marked as helpful
@tmerrick17
Posted
@brasspetals Worked like a charm...you rock!
@brasspetals
Posted
@tmerrick17 Awesome! Glad it worked! 😄