@inappstory/slide-api 0.1.39 → 0.1.40
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.
- package/dist/index.cjs +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17819,8 +17819,19 @@ class WidgetCopy extends WidgetBase {
|
|
|
17819
17819
|
}
|
|
17820
17820
|
onStart() {
|
|
17821
17821
|
super.onStart();
|
|
17822
|
-
|
|
17823
|
-
|
|
17822
|
+
/**
|
|
17823
|
+
* Prevent showing resultLayer on SlideStart when widget has animation
|
|
17824
|
+
* Clean up all possible animation classes (.narrative-element-animation-fade-in-up, etc.)
|
|
17825
|
+
*/
|
|
17826
|
+
// TODO this is temporal workaround, in future - move animation on separated layer, prevent intersection with widget css properties
|
|
17827
|
+
this.resultLayer?.classList.remove("narrative-element-animation", "active", "animated");
|
|
17828
|
+
const toDelete = [];
|
|
17829
|
+
this.resultLayer?.classList.forEach(item => {
|
|
17830
|
+
if (item.includes("narrative-element-animation-")) {
|
|
17831
|
+
toDelete.push(item);
|
|
17832
|
+
}
|
|
17833
|
+
});
|
|
17834
|
+
this.resultLayer?.classList.remove(...toDelete);
|
|
17824
17835
|
if (this.isPromotionalCode) {
|
|
17825
17836
|
this.fetchPromoCode();
|
|
17826
17837
|
}
|