Share Posted July 5, 2021 Hi, I would like to create this cool navbar animation. The navbar desappear once you scroll down, but it appears again when you scroll up a little bit. https://caprocat.com/ Thanks for you help. Link to comment Share on other sites More sharing options...
Share Posted July 5, 2021 You can do something like this, if you don't want css transitions you can replace them with gsap animations the principle is the same either way. https://www.w3schools.com/howto/howto_js_navbar_hide_scroll.asp 1 Link to comment Share on other sites More sharing options...
Share Posted July 5, 2021 Hey Marc. The ScrollTrigger demos-page has an example, too. See the Pen qBawMGb by GreenSock (@GreenSock) on CodePen 2 Link to comment Share on other sites More sharing options...
Share Posted December 19, 2021 Why does scrollTrigger no trigger target? it mean body? Link to comment Share on other sites More sharing options...
Share Posted December 19, 2021 Sorry @powerkaifu - could you please specify your question a bit? - I'm not sure what you are asking here. Best also include a minimal demo of what you have tried, because the example above works as expected and it is impossible to help you without seeing what you have tried. Thanks. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now