Tagged: animated numbers, enfold, Layer Slider, LayerSlider
Hi – I’m wondering if there is a way to delay the counting of the animated numbers when using as a shortcode in the LayerSlider until the layer the numbers are on is displayed.
Currently it seems to animate as soon as the slide is displayed, so by the time the layer with the numbers come up it has already animated.
Thanks!
Hello,
I don’t think there is an easy way to prevent that unfortunately, the animated numbers element it’s not meant to be used on that environment.
Regards,
Josue
Posted a long time ago so sorry for the bump; just in case anybody reading this post now needs the solution to this, on line 2684 of shortcodes.js (wp-content/themes/enfold/js):
setTimeout(function(){ start_count(element, countTo, increment, current, fakeCountTo);}, 300);
change ‘300’ to something more like ‘3000’, which leaves like a 1-2 second gap once the layer slider elements have all loaded. You can mess around with the value as you need it.
:-)