Jump to content
Search Community

SVG animation lagging after many tries

donnierisk test
Moderator Tag

Recommended Posts

Hi there,

 

Loving GSAP and worked with it on a few projects! I'm trying to create an intro animation for one of our apps using SVGs. In the past I was able to make it work without lag before, but for the life of me I can't get it to be smooth on a full screen. I've tried animating x/y properties instead of top, etc. The result is the same. It needs to adapt to screensize that's why I use vh for tweening. Does anyone have tips for me please? I've attempted many things that don't seem to work and I'm just worried i'm going at this all wrong maybe...

 

The reason the SVGs are wider than the screen is that there are horizontal movements between different pages on our web app.


PS. should try keep the screen height as big as possible to see the animation properly. 


Regards

See the Pen YzwVrQp by donnierisk (@donnierisk) on CodePen

Link to comment
Share on other sites

Hey donnierisk and welcome to the GreenSock forums.

 

The issue is that your SVG is just not performant to animate. Without making concessions it won't perform better, period. Primarily it's the filters that are making your SVG less performant but you can probably optimize a few other things as well. See this post about how to improve SVG performance.

  • Like 1
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...