Jump to content
Search Community

Not smooth animations on iPad/iPhone

Dennisat
Moderator Tag

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

Posted

Note that I am working on other's implementation, I am not familiar with GSAP yet.


In this animation, when the safe opens... red boxes are coming out of it.

There is a performance issue with these flying boxes. They don't "fly" smoothly only on ios devices (all of them).


This is happening at line 168 in logosDistances.forEach loop.

For the debugging, to ensure that there is no other animation in progress at the same time... I wrapped this tween in a timeout of 3sec.


There is TinyURL for this animation, the: https://tinyurl.com/redredbox

Thank you in advance

See the Pen vjPaNO by dennisat (@dennisat) on CodePen.

Posted

Hi and welcome to the GreenSock forums.

 

I removed the fill and filter from each logo. See if this runs any better. 

 

What type of iPhone / iPad are you using (version, iOS)

 

See the Pen mLoadB?editors=1000 by GreenSock (@GreenSock) on CodePen.

 

  • Like 3
Posted

Now it's perfect! I applied this "fill" on the <g> and it looks as I wanted.

 

Tested on

ipad a1474

iphone 4s

 

Thanks for your fast response!

Posted

But again what if we need to apply the filter?

This filter is the shadow.

Posted

SVG filters can be very processor intensive which can yield sub-optimal animation results. 

If your logos are all the same size (or aspect ratio), you might do better with a bitmap (png) shadow and place it underneath each logo.

I'm not exactly sure what the best performing alternative would be here.

  • Like 5

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...