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