SOLVED: Above-the-fold entry animations flash before animating

Entry animations don’t work well when they are above the fold. The problem is that the element is visible when the page loads, and only after it has loaded does the animation take effect, so the element is hidden before it animates in (fade, slide, zoom, etc.)

This screencast illustrates the issue: Dropbox - entry-animation.mov - Simplify your life

In it, a page is loaded, and the banner and three smaller images all appear before they are hidden and then animate in.

It seems like the CSS for animated elements needs to be loaded at the very top of the page before the page contents are loaded.

I know I can use a preloader or manually add some critical CSS to load in the header, but it would be nice to not have to and helpful for those who aren’t as well versed in doing so.

Nevermind…found a solution, although it’s not overly inutive, it’s effective. Just set the opacity to zero on the element ID. The animation will override that so although it will not be visible when loaded, it will animate in. :grinning_face_with_smiling_eyes:

4 Likes

thanks, just what I need

Hi,

Same issue here.

And the workaround doesn’t work for all animations. For instance with zoomIn, opacity progressively gets back to zero :frowning:

@timmse, this thread shouldn’t be marked as SOLVED.

Hi Yan,
Eric marked the thread as solved himself at that time :wink:

However, there is a newer, similar report for which we have already created a task: WIP: Home page containers don't respect FadeIn Animation

Best regards,
timmse

1 Like

Hello!

It seems that the same problem as @ainom mentioned, is occurring again with the new animation options (in Interactions).

I have different elements in a hero section, with the following interaction configured:

  • Action > Start animation
  • Trigger > Content load (I have tried with enter viewport, and the same occurs)
  • Animation > Fade in

With that parameters, the sequence is: the page loads, the elements are visible for a tiny moment, and then the fade in starts. It makes really weird to see, as if there was some glitch.

If I add a delay to the element, the “glitch” is even bigger.

Anyone is experiencing the same?

1 Like

Seems that using the CSS code in this thread solves the issue, by now: [FIXED] How to use interactions for entrance animations that don't show the element on page-load

Not sure if it is the best solution, though!

Hey,
We’re working on it: WIP: Interactions animations flicker / lagging

1 Like

That’s great! Thank you for letting me know!