Jump to content
Search Community

Choppy iPhone Animations with SVG filters

zachschnackel test
Moderator Tag

Go to solution Solved by GreenSock,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi all,

In the referenced CodePen, the "social blob" animation on desktop; using `feGaussianBlur` and `feColorMatrix`, is smooth and works as intended, but on mobile devices the shapes are cut-off and very choppy. Is there something I'm missing with how GSAP is interpreting these values? Thanks so much for any help!

See the Pen jbjPEj by zslabs (@zslabs) on CodePen

Link to comment
Share on other sites

There's really nothing special that GSAP is doing to those values at all, and the biggest bottleneck (BY FAR) is the browser's graphics rendering which is completely unrelated to GSAP. In other words, it might take 0.01% of the CPU load for GSAP to calculate the new (tweened) values, and 99.99% for the browser to then render those visually to the screen. So even if GSAP was 1000x faster, you'd never notice it because it accounts for so small a portion of the overall load. The fact is that SVG filters are very processor-intensive and most mobile devices just have very weak processors. I wish I had a magic bullet for you. I'm sure this isn't the answer you were hoping for :(

  • Like 1
Link to comment
Share on other sites

Hey Jack,

Really appreciate the reply. I completely get your above point; what I'm trying to figure out is why something like 

See the Pen wKReBX by chrisgannon (@chrisgannon) on CodePen

which uses the same type of filters works very well on my mobile device, even though there's a lot more elements on the page. Could this have something to do with applying the filter with CSS compared to using all SVG elements?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...