PageSourceSearch

https://torresinmo.com/wp-content/themes/intrace//assets/js/intrace-animation-script.js?ver=1.2.1

js torresinmo.com collected 2026-10-08 13:25:54 UTC 1,398 bytes, 39 lines download raw bytes

1"use strict";
2
3document.addEventListener("DOMContentLoaded", function () {
4    function playAnimation(element, frame = false) {
5        if (frame) {
6            element.style.visibility = 'visible';
7            element.style.opacity = '1';
8            element.style.transform = 'none';
9        }
10        if (element.getBoundingClientRect().top > 0 && element.getBoundingClientRect().top <= (window.innerHeight * 0.75)) {
11            element.classList.add('intrace-animate-init');            
12        }
13    }
14
15    function prepareAnimation(doc, frame = false) {
16        var elements = doc.getElementsByClassName('intrace-animate');
17
18        for (let element of elements) {
19            if ( frame ) {
20                playAnimation(element, true);
21            } else {
22                window.addEventListener('load', function () {
23                    playAnimation(element);
24                });
25                window.addEventListener('scroll', function () {
26                    playAnimation(element);
27                });
28            }
29        }
30    }
31
32    prepareAnimation(document);
33
34    setTimeout(function() {
35        var iframe = document.getElementsByClassName('edit-site-visual-editor__editor-canvas');
36        var innerDoc = iframe.length > 0 ? iframe[0].contentDocument || iframe[0].contentWindow.document : null;
37        innerDoc ? prepareAnimation(innerDoc, true) : null;
38    }, 3000);
39});

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.