Jump to content
Search Community

GSAP Flickering Nav Animation on mobile

Giovanny7 test
Moderator Tag

Recommended Posts

Hi,

 

For some reason, I get this noticeable flickering effect on my IOS phone. On the desktop the nav animation works perfectly fine in safari and chrome and if I try opening the mobile responsive window in the developer tools it also works fine. I'm not entirely sure if this is related to webkit thing that I'm missing since the flickering is occurring on mobile Safari. 

 

It seems that this is happening to my roundiv-div element which makes the illusion of a rounded nav opening and closing. Below is a screen recording. 

See the Pen OJBPpgb by officialgio (@officialgio) on CodePen

Link to comment
Share on other sites

Your video doesn't seem to match the CodePen you provided. Is it the email button that you're talking about? 

 

Have you tried removing 3rd party tools like LocomotiveScroll and barba from the equation? And also update to the latest GSAP version (you're using 3.8.0 but we're at 3.11.5 right now).

 

Sounds like maybe a browser rendering bug (unrelated to GSAP). Safari on iOS is the most buggy browser I've ever seen by far. 

Link to comment
Share on other sites

I'm talking about the opening nav which is the fixed-nav element.

 

I've notice my cdn are not up to date, now I've just updated them but it seems that it broke the code. I just updated it on the same codepen and scrolling doesn't work anymore after I added scroll trigger cdn. 

 

Did I do something wrong?

 

 

Link to comment
Share on other sites

Hi,

 

There are a lot of errors and warnings on your codepen:

mbZ6Ugr.png

 

In line 11 word is undefined:

word.classList.add('loading--active');

 

Also it seems that you also have barba for transitions there as well. I'd suggest you to fix those errors first and then see what could be the issue. Maybe is related to one of those warnings as well.

 

Happy Tweening!

Link to comment
Share on other sites

Hello,

 

Ignore the errors. The errors are due to not providing the rest of the HTML code which has nothing to do with the issue I've encountered. With or without the HTML the nav bar is flickering or more specifically I think the rounded-div is the issue since that is the last left-most element in the fixed-nav.

 

Before I did any Barba transitions the flickering will still be there so It's not related to Barba or missing HTML elements errors. 

 

Please take a look at the same code pen, I've provided the first full-page html doc without the second page which codepen isn't allowing me but it shouldn't matter for this issue.

 

NOTE: I have the full code and I have already fixed any necessary errors before posting this issue.

 

image.thumb.png.9df8a29fbc13dfdec370b0bfd7ab74c5.png

 

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