test
parent
6263e6e229
commit
3bf256a4ca
|
@ -57,6 +57,11 @@
|
||||||
let videoElement = videoWrapperClone.querySelector('video');
|
let videoElement = videoWrapperClone.querySelector('video');
|
||||||
videoWrapperClone.classList.add('shx-video-for-desc');
|
videoWrapperClone.classList.add('shx-video-for-desc');
|
||||||
|
|
||||||
|
// move video element out of his parent
|
||||||
|
videoWrapperClone.appendChild(videoElement);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// pause all video
|
// pause all video
|
||||||
Object.keys(this.video_wrapper_Clones).forEach((key) => {
|
Object.keys(this.video_wrapper_Clones).forEach((key) => {
|
||||||
if (key !== this.currentVariant) {
|
if (key !== this.currentVariant) {
|
||||||
|
|
|
@ -30,9 +30,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.shx-video-for-desc {
|
.shx-video-for-desc {
|
||||||
max-width: 100%;
|
width: 100%;
|
||||||
height: 400px;
|
|
||||||
width: 400px;
|
|
||||||
|
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||||
|
|
Loading…
Reference in New Issue