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 • 349 B
ASCII text
        
            
1
function isOverflown(e) {
2
return e.scrollWidth > e.clientWidth;
3
}
4
5
let marquees = document.querySelectorAll(".inner-thumbnail-marquee");
6
7
for(const e of marquees) {
8
if(isOverflown(e)) {
9
e.style.animationPlayState = "running";
10
e.style.transform = "translateX(100%)";
11
} else {
12
e.style.animation = "none";
13
};
14
};
15