Web Bae Posted February 13, 2023 Share Posted February 13, 2023 Hey All! I'm working on an example Flip demo that respects user's motion preference. I've got a working example in the codepen, but I feel like I'm being redundant/repetitive with my code. Any advice on how to clean this up a bit would be greatly appreciated! Thanks 🙏 See the Pen dyqbBGR by learyjk (@learyjk) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted February 13, 2023 Solution Share Posted February 13, 2023 Maybe just use the conditions syntax: See the Pen YzOKmpB?editors=0010 by GreenSock (@GreenSock) on CodePen Does that help? 1 Link to comment Share on other sites More sharing options...
Web Bae Posted February 13, 2023 Author Share Posted February 13, 2023 That's it! Thanks. 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