soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
314 stars 29 forks source link

Pro Menu does not honour animate on scroll in front end #1855

Open rodpascoe opened 3 years ago

rodpascoe commented 3 years ago

Describe the bug If you insert a pro menu and choose a template and then go to animate on scroll and select say fade with an animation delay on 1000ms it works in the back end (sometimes) but never in the front end. The Pro Menu always appears instantly.

Have you tried all the steps at https://oxygenbuilder.com/documentation/troubleshooting/troubleshooting-guide/? Yes/No Yes

Are you able to replicate the issue on a Sandbox install at https://oxygenbuilder.com/try? Yes If yes, provide the link to a Sandbox install where the issue is present. If the issue only exists on a specific post or template, provide a direct link to that post or template. http://ill-meerkat.w5.wpsandbox.pro/test/

To Reproduce Steps to reproduce the behavior: 1.) Add a pro menu 2.) Add a animate on scroll and set to fade with an animation delay of 1000

Expected behavior A clear and concise description of what you expected to happen. Pro menu is not visible for 1 second then fades into view

What actually happens A clear and concise description of what happens instead of the expected behavior. Pro menu appears instantly on page load

Screenshots If applicable, add screenshots to help explain your problem. N/A

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

KittenCodes commented 3 years ago

@rodpascoe

Unfortunately, AOS doesn't work correctly if the element is already in the viewport when the page loads. There is an open issue in the AOS GitHub repo about it.

However, I did notice that moving the Pro Menu out of the viewport didn't make a difference, so I've reported this internally.