@total_onion/onion-library 2.0.187 → 2.0.188
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -111,14 +111,16 @@ function scrollingbannerJs(block) {
|
|
|
111
111
|
const anim2 = containers[1].animate(animation2, timing2);
|
|
112
112
|
|
|
113
113
|
initializedBanners.set(bannerElement, {anim1, anim2});
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
114
|
+
if (bannerElement.querySelector('a')) {
|
|
115
|
+
block.addEventListener('mouseover', () => {
|
|
116
|
+
anim1.pause();
|
|
117
|
+
anim2.pause();
|
|
118
|
+
});
|
|
119
|
+
block.addEventListener('mouseleave', () => {
|
|
120
|
+
anim1.play();
|
|
121
|
+
anim2.play();
|
|
122
|
+
});
|
|
123
|
+
}
|
|
122
124
|
}
|
|
123
125
|
|
|
124
126
|
function resetBanner(bannerElement) {
|