Haafling Posted December 8, 2019 Share Posted December 8, 2019 Hello everyone, With Scrollmagic, I added a section wipes (manual) on my website. I used the source code from this post https://greensock.com/forums/topic/18939-scrollmagic-section-wipes-with-multiple-sections-in-each-panel/. So the JS is copy pasted from See the Pen eLgpWa by PointC (@PointC) on CodePen . I use MacOS. It's super smooth on Chrome and super laggy on Safari ... See here http://dylanmura.com/ff2/ I have no idea why, can someone help me? Thank you in advance, See the Pen by ff2 (@ff2) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted December 9, 2019 Share Posted December 9, 2019 We're happy to answer any GSAP-specific questions, but we just don't have the resources to offer free performance audits on live web sites and general troubleshooting, especially with things like ScrollMagic which is not a GreenSock product. That being said, I noticed a few things: You have CSS transitions applied to things - those can definitely get in the way and cause problems when you try to animate anything with JS too. Definitely avoid applying those to anything you're animating with GSAP (or any JS). You've got CSS filters applied to things - those are VERY processor-intensive for the browser to render. That's likely what's killing performance for you. You've got a bunch: brightness(100%) hue-rotate(0deg) saturate(100%) contrast(100%) which frankly seem kinda wasteful. You've got like 2500 lines of CSS - seems like a lot. You've got a bunch of jQuery animations - I'd recommend avoiding those (GSAP is up to 20x faster) You've got a lot of deeply nested <div> elements and perhaps you're triggering document reflows that are very difficult on the browser to render. Again, if you've got any GSAP-specific questions, we'd be happy to help but if you're looking for general performance auditing and troubleshooting of a live site, this isn't the best place for that. Happy tweening! 1 Link to comment Share on other sites More sharing options...
Haafling Posted December 9, 2019 Author Share Posted December 9, 2019 Thank you for your kind answer! I’m still newbie. I will try your suggestion and post the results. But still I don’t understand why the gap of perfomance is so huge between Safari and Chrome on the same machine? Thank you again Link to comment Share on other sites More sharing options...
ZachSaucier Posted December 9, 2019 Share Posted December 9, 2019 2 minutes ago, Haafling said: why the gap of perfomance is so huge between Safari and Chrome on the same machine They are different browsers so they're going to perform differently. They use the same engine but do different things on top of that engine. We can't give you the specific as we don't work on either browser or have much of any idea of how they do things. 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