PageSourceSearch

https://ant-logistics.com/intro/blk/js/lottie-scroll.js

js ant-logistics.com collected 2026-10-01 15:38:26 UTC 644 bytes, 19 lines download raw bytes

1function lottieScroll() {
2    const players = document.getElementsByClassName('lottie');
3    for (let i = 0; i < players.length; i++) {
4        const { bottom, height } = players[i].getBoundingClientRect();
5        let triggerHeight;
6        if (players[i].classList.contains('spheres-graph')) {
7            triggerHeight = bottom - height/3.3;
8        } else {
9            triggerHeight = bottom + 50;
10        }
11        if(triggerHeight <= (window.innerHeight || document.documentElement.clientHeight)) {
12            players[i].play();
13        }
14    }
15}
16
17window.addEventListener('scroll', function() {
18    lottieScroll();
19});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.