-
AuthorPosts
-
November 12, 2019 at 12:34 pm #1155976
I have a few elements on a page that begin animating too late. When you scroll past them, they are still ‘blank’ and you have to over scroll, then go back to see the animation.
I found this article which solves the problem but it’s too generic. https://kriesi.at/support/topic/animations-trigger-too-late/
The issue only happens on one page, below a certain point. So using the script below ruins the animations across all pages. Is there a way to use the script in the above link but make it target specific IDs only?
November 13, 2019 at 5:39 am #1156274Hey tocal,
Could you post a link to where we can see this problem please?
Best regards,
RikardNovember 13, 2019 at 12:27 pm #1156367Yes. The problem occurs on this page: https://ocall.co.uk/portfolio-item/cadivus
It seems to become an issue around this point https://ocall.co.uk/portfolio-item/cadivus/#cadivus_animated_numbers where you can see the numbers animate in as they leave the viewable area. The animations that follow this (a photograph, 3 portfolio thumbs and 4 social icons) do not load at all on a regular top-down scroll.
November 18, 2019 at 12:34 pm #1157840Hello?
November 18, 2019 at 10:49 pm #1157968Hi,
Which browser? Also what cache are you using, except this from our theme?
Best regards,
BasilisNovember 19, 2019 at 10:47 am #1158086It applies in all browsers. The site does not use any caching plugins.
Here is a screen recording that shows the issue in Safari & Chrome for Mac. Screen recording
November 24, 2019 at 2:10 pm #1159586Hi,
Sorry for the late reply, do you still have the modification in place? Please try removing it and disabling your Enfold Theme Options > Performance > JS & CSS file merging and compression,
in my tests your waypoint is triggering very late, after your element is off the screen, which you already know :)
I tested with this script:(function($){ $(document).ready(function () { $('#cadivus_animated_numbers').waypoint(function() { alert('The element has appeared on the screen.'); }); }); })(jQuery);
but when I test on my localhost as soon as the ID is in view the alert is fired:
(function($){ $(document).ready(function () { $('#demos').waypoint(function() { alert('The element has appeared on the screen.'); }); }); })(jQuery);
Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.