Ryan GTA Posted Monday at 12:14 AM Share Posted Monday at 12:14 AM (edited) I need to open menu, Coming from Left and Close it going Up and I need to Continue that, currently on First click it comes from left goes from Top but next time it comes from Top, can some one Help me how to to this? in this code pen, I want to Bring in the box from Left always and go from top, it is not happening on the second onwards. See the Pen mdYNbRM by Bhanu-Dhunganaa (@Bhanu-Dhunganaa) on CodePen Edited Monday at 02:02 PM by Ryan GTA Link to comment Share on other sites More sharing options...
GSAP Helper Posted Monday at 03:46 AM Share Posted Monday at 03:46 AM Without a 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 CodePen or Stackblitz that illustrates the issue? Please don't include your whole project. Just some colored <div> elements and the GSAP code is best. See if you can recreate the issue with as few dependencies as possible. Start minimal and then incrementally add code bit by bit until it breaks. Usually people solve their own issues during this process! If not, at least we have a reduced test case which greatly increases your chances of getting a relevant answer. See the Pen aYYOdN by GreenSock (@GreenSock) on CodePen that loads all the plugins. Just click "fork" at the bottom right and make your minimal demo: 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...
Solution Rodrigo Posted Monday at 03:33 PM Solution Share Posted Monday at 03:33 PM Hi @Ryan GTA and welcome to the GSAP Forums! Just use a fromTo instance: https://gsap.com/docs/v3/GSAP/gsap.fromTo() Here is a fork of your demo: See the Pen WNBVNyQ by GreenSock (@GreenSock) on CodePen Finally, thanks for being a GSAP Club member and supporting GSAP! 💚 Hopefully this helps Happy Tweening! Link to comment Share on other sites More sharing options...
Ryan GTA Posted Monday at 03:57 PM Author Share Posted Monday at 03:57 PM Thank you @Rodrigo . 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