By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 marquee.js

View raw Download
text/plain • 468 B
ASCII text
        
            
1
// @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache-2.0
2
3
function isOverflown(e) {
4
return e.scrollWidth > e.clientWidth;
5
}
6
7
let marquees = document.querySelectorAll(".inner-thumbnail-marquee");
8
9
for(const e of marquees) {
10
if(isOverflown(e)) {
11
e.style.animationPlayState = "running";
12
e.style.transform = "translateX(100%)";
13
} else {
14
e.style.animation = "none";
15
};
16
};
17
18
// @license-end