Skip to content

Commit 3998387

Browse files
committed
PB-266: Video background for Slide
1 parent 944f6da commit 3998387

File tree

2 files changed

+16
-0
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web

2 files changed

+16
-0
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/slide/preview.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/slide/preview.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@ export default class Preview extends BasePreview {
137137
videoLazyLoading: (this.contentType.dataStore.get("video_lazy_load") as string) === "true",
138138
},
139139
);
140+
// @ts-ignore
141+
this.wrapper.jarallax.video.on("started", () => {
142+
// @ts-ignore
143+
if (this.wrapper.jarallax.$video) {
144+
// @ts-ignore
145+
this.wrapper.jarallax.$video.style.visibility = "visible";
146+
}
147+
});
140148
});
141149
}
142150

0 commit comments

Comments
 (0)