Search the Community
Showing results for tags 'click events'.
Found 4 results
Synchronize click events
Catalin R. posted a topic in GSAPHi, I have a problem with the syncing of click events. I've found many codepens about that but nothing works properly. 1. When I open the menu I have a timelineMax with the animation I want 2. When I close the menu I need another timelineMax (another animation), a fade-out not a reverse of the current timelineMax 3. The same thing for Test Drop which has a drop-menu 4. When the drop-menu is open and I close the entire menu (top-right trigger) there's a lack of syncing 5. How can I run a timelineMax to the end without any animation interfere meantime (by clicking the top-right trigger)? https://codepen.io/ZenTao/pen/OZBKBX I hope that is't not too much for this day! Thanks!
A more reusable set-upHello, i have a scenario, where i wish to animate elements from the last position to the new one depending on a large set of button options. How do i make make code modular so not have the timeline in the click event function. Please see pen.
Assign a Tween to Current Target inside a Function.
Hi there. New to the forum here. I searched for the answer here, but didn't find the answer so here goes. I am newer to js, but I am looking for gsap related answers not js. Just throwing that out there. I created a multi-step form using gsap. Here is smaller working portion of it. http://codepen.io/chrisMaki/pen/ggmBqL I created several small functions each containing their own timelines. I am using the functions inside EventListeners to show and hide fieldsets. Each function is passing arguments. Is there a way to connect multiple functions into one timeline? I am seeing strange behavior--I assume because of the multiple timelines firing. I tried using .add() but maybe I was doing it wrong. Also could I use .reverse() to reuse the same functions in reverse if a previous button were to be clicked.(sorry snuck that in there even though it may be off topic). Let me know if this is enough info. The pen has decent comments. Didn't want to add a heaping helping of snippets.