Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1278683

    Hallo,
    die animierte Ziffern beginnen erst ab der horizontalen Mitte hoch zu zählen. Dies scheint vor allem in Apple Safari so zu sein.
    Wie kann man es einstellen, das die Zahlen bereits beim erscheinen (in den sichtbaren Bereich scrollend) zu zählen beginnen?

    #1279429

    Hey peterbiermann,

    Thank you for the inquiry.

    That is possible, we could make the animation start earlier, but we have to modify the enfold\js\shortcodes.js directly. We have to adjust the offset value in this code located around line 224.

    	$('.avia_animate_when_visible', container).avia_waypoints();
    			$('.avia_animate_when_almost_visible', container).avia_waypoints({ offset: '80%'});
    
    			if(container == 'body') container = '.avia_desktop body';
    			$('.av-animated-generic', container).avia_waypoints({ offset: '95%'});
    

    Decrease the offset value to 30% so that the animation starts once the element is positioned around 30% of the viewport height from the top. Set it to 0 to trigger the animation once the elements hits the very top of the viewport.

    You may need to toggle or temporarily disable the Performance > File Compression settings after doing the modification.

    Best regards,
    Ismael

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