Drexel Posted February 22, 2022 Share Posted February 22, 2022 I'm trying to understand a few Flip aspects of this demo. 1. Is it possible to have a toggle that is controlled by 2 different buttons? Would I need to different States for that to work? How would i capture the 2nd state? 2. After the flip plays through the first time it seems to break the layout after that. Thanks for the help! See the Pen qBVYgRa?editors=1111 by icekomo (@icekomo) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted February 22, 2022 Share Posted February 22, 2022 You want to capture the state right before you make a change, like when changing the class, so move the getState calls into your click handlers. So think of it as 3 different steps that are necessary. Flip.getState() Make a change to the DOM Flip.from() See the Pen GROdaZM by GreenSock (@GreenSock) on CodePen 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