Share Posted August 11, 2022 this.iconTL = gsap.timeline({repeat: -1}); this.flashItems.forEach(item => { this.iconTL.set(item, {display: 'block'}, '<').set(item, {display: 'none'}, '>.3'); }) See the Pen bGvmbGW by weweloo (@weweloo) on CodePen Link to comment Share on other sites More sharing options...
Share Posted August 11, 2022 Hi @Wewe. Seems to work fine: See the Pen KKoBOxZ by GreenSock (@GreenSock) on CodePen Please make sure you always provide a minimal demo if you'd like some help. Good luck! 👍 Link to comment Share on other sites More sharing options...
Author Share Posted August 13, 2022 Thanks for your help. I added the codepen to my topic, I used the <use> tag for my svg element, and is not working on safari. Link to comment Share on other sites More sharing options...
Share Posted August 13, 2022 That has nothing to do with GSAP. You can verify that by removing GSAP from the equation and set the values directly. It's a Safari rendering issue. One solution seems to be setting a transform value like "x" or "rotation" to something (even a tiny amount): See the Pen qBoJBda by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Author Share Posted August 13, 2022 that's pretty, many 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