Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #354374

    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!

    #356402

    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

    #454461

    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.

    :-)

    #454464

    Hey!

    Thanks for sharing your solution @codecreative :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.