krisxtina Posted June 19, 2021 Share Posted June 19, 2021 Hello. I have accordion / tabs with question-answer. When I open tab, the text slides down (the height increases), when I close, the text slides up. I want to make it so, that when the tab is opened, I click on another, the both animations work synchronously. Now I have to wait while opened tab closes, and then active tab opens. I don`t understand how to sync animations. Could you please help me Link to comment Share on other sites More sharing options...
Solution mikel Posted June 19, 2021 Solution Share Posted June 19, 2021 Hey @krisxtina, Welcome to the GreenSock Forum. Here is an accordion concept. Both tweens start at the same time (see position parameter) See the Pen XWjGxxR by mikeK (@mikeK) on CodePen Does it help you? Happy tweening ... Mikel 2 1 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