• Resolved DoubleDeckerBus

    (@doubledeckerbus)


    Hi,
    the counter works fine at the first page load, but if you scroll down and up again the numbers always change.

    Thank you in advance

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • hi @doubledeckerbus ,

    go to plugin editor > select counter nuber showcase > assets > js > select counter_nscript.js and replace the code with below

    var worked = 0;
    
    jQuery(document).ready(function( jQuery ) {
    jQuery(window).scroll(function() {
        var top_of_element = jQuery('.counter').offset().top;
        var bottom_of_element = jQuery('.counter').offset().top + jQuery('.counter').outerHeight();
        var bottom_of_screen = jQuery(window).scrollTop() + jQuery(window).innerHeight();
        var top_of_screen = jQuery(window).scrollTop();
    
        if ((bottom_of_screen > top_of_element) && (top_of_screen < bottom_of_element) && worked == 0){
            jQuery('.counter').counterUp({
                delay: 20,
                time: 2000
            });
    	worked = 1;
        }
    });

    alse go to jquery.counterup.min.js
    and replace
    t.waypoint(i,{offset:"100%",triggerOnce:!0}) with i()
    and save.

    please let me know if it works or not

    thanks

    • This reply was modified 5 years, 8 months ago by preetam27.
    Thread Starter DoubleDeckerBus

    (@doubledeckerbus)

    Thank you!
    That solved the problem.

    hi @doubledeckerbus ,

    glad that issue has been resolved..please rate our plugin

    thanks

    Hi,

    I have a similar problem, I use Divi , page address:umowy.org

    Please help.

    hi @mate5087,

    please actiate and use our plugin on the url you have shared

    thanks

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Problem when scrolling up the page’ is closed to new replies.