SimonDem Posted February 26 Share Posted February 26 I'm working on a webpage in react and i'm having a problem with the navbar animation. I created a GSAP timeline which makes the navbar come in from above after which the logo and links fade in (opacity). There is also a delay on the first animation because i want some other animations to display first from another component. When i save my code the animation runs as it should but when i refresh te page to see it again, the animation doesn't display properly and the navbar sort of snaps into place after 5 seconds. Am I missing something here? The code is included. See the Pen dyrxjbq?editors=0010 by Sdem15211 (@Sdem15211) on CodePen Link to comment Share on other sites More sharing options...
GSAP Helper Posted February 26 Share Posted February 26 Without an interactive minimal demo, it's very difficult to troubleshoot; the issue could be caused by CSS, markup, a third party library, a 3rd party script, etc. Would you please provide a very simple Stackblitz that illustrates the issue? Are you using a framework/library like React, Vue, Next, etc.? CodePen isn't always ideal for these tools, so here are some Stackblitz starter templates that you can fork and import the gsap-trial NPM package for using any of the bonus plugins: React (please read this article!) Next Svelte Sveltekit Vue Nuxt Please share the StackBlitz link directly to the file in question (where you've put the GSAP code) so we don't need to hunt through all the files. Once we see an isolated demo, we'll do our best to jump in and help with your GSAP-specific questions. ✅ 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