Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Dennisat

Not smooth animations on iPad/iPhone

Recommended Posts

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

Link to post
Share on other sites

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
Link to post
Share on other sites

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!

Link to post
Share on other sites

But again what if we need to apply the filter?

This filter is the shadow.

Link to post
Share on other sites

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
Link to post
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.

×