d
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
|
background: #000;
|
||||||
}
|
}
|
||||||
ul {
|
ul {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -199,7 +200,10 @@
|
|||||||
|
|
||||||
ul.addEventListener("mouseleave", (e) => {
|
ul.addEventListener("mouseleave", (e) => {
|
||||||
if (e.target.tagName === "VIDEO") {
|
if (e.target.tagName === "VIDEO") {
|
||||||
e.target.pause();
|
let video = e.target
|
||||||
|
video.pause();
|
||||||
|
video.src = "";
|
||||||
|
video.src = video.dataset.src;
|
||||||
}
|
}
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user