rbdk
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by rbdk
-
-
Hello!
I've been trying to figure out a way of hiding my navbar on scroll down and then showing again as the user scrolls up using ScrollTrigger if possible.I've seen the codepen linked above and had a little look in forums however what I'm after is to completely hide the Navbar whenever the user scrolls down, regardless of their yPosition within the document. In the codepen linked the Navbar only shows when the user reaches the top of the document.
Is there anyway to do this with ScrollTrigger?
(Sorry I haven't made a recreation, I'm a bit lost as to how to show what I mean better than the codepen provided)
Thanks so much,
Rob.
See the Pen mdVyPvK by GreenSock (@GreenSock) on CodePen
ScrollTrigger show/hide Navbar on scroll up/scroll down
in GSAP
Posted
Oh amazing @akapowl!!
Thanks so much! I hadn't looked in the collection on codepen only forums/googling.
Really appreciate the help,
Rob