HEX
Server: Apache
System: Linux plesk02.novi-net.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User: leokosak.from.hr_bptbvso25rn (10098)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/leokosak.from.hr/cms.leokosak.from.hr/wp-content/themes/zeever/assets/js/index.js
"use strict";
var elements = document.getElementsByClassName('zeever-animate');

function playAnimation(element) {
    if ( element.getBoundingClientRect().top > 0 && element.getBoundingClientRect().top <= (window.innerHeight * 0.75) ) {
        element.classList.add('zeever-animate-init');
    }
}

for (let element of elements) {
    window.addEventListener('load', function() {
        playAnimation(element);
    });
    window.addEventListener('scroll', function() {
        playAnimation(element);
    });
}