Hi @IXStudio
The code you supplied worked wonders for the Employees counter, but i have not been able to get it working with any of the other. I changed up a bit of the code, so that it would target another block, but i cannot get it working...
This is the code, that i wrote for the "Miles of CableGuard wrapping strip used".
<script>
// wrap
var eventFired = false,
objectPositionTop = $('section[data-section-id="5e8c4a5a0d1a452372558c60"]').offset().top;
$(window).on('scroll', function() {
var currentPosition = $(document).scrollTop();
if (currentPosition > objectPositionTop && eventFired === false) {
eventFired = true;
// your code
// Animate the element's value from 0 to 42:
jQuery({someValue: 0}).animate({someValue: 1693}, {
duration: 7000,
easing:'swing', // can be anything
step: function() { // called on every step
// Update the element's text with rounded-up value:
$('#block-yui_3_17_2_1_1604658610318_15620 h2 #wrap').text(Math.ceil(this.someValue) + "");
}});}});
</script>