Jump to content
Search Community

Animating Height Quickly?

amanfromsolan test
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

I have been working on a menu that unveils itself by stretching out the menu button to the nav height and width. It has been working flawlessly over my laptop but lags on my phone.

 

Is there a way to make this smoother? Or am I animating too many elements at a click? I have attached a CodePen Demo.

See the Pen pNgVMK by amanfromsolan (@amanfromsolan) on CodePen

  • Like 1
Link to comment
Share on other sites

I didn't notice any obvious issues that'd cause performance problems. Some mobile devices just can't handle much in terms of graphics/animation. Browsers continue to make progress performance-wise, but ultimately it may depend on the CPU/GPU power of the device you're on. I wish I had a super easy solution for you other than maybe trying to shift to using canvas (which has its own challenges, of course). 

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