mirror of
https://gitlab.com/vyla-entertainment/home-frontend.git
synced 2026-11-21 00:35:42 -05:00
Released New Website
This commit is contained in:
13
src/scripts/animations/videos.js
Normal file
13
src/scripts/animations/videos.js
Normal file
@@ -0,0 +1,13 @@
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
document.querySelectorAll("video").forEach(video => {
|
||||
video.muted = true;
|
||||
video.setAttribute("muted", "");
|
||||
video.setAttribute("playsinline", "");
|
||||
video.setAttribute("webkit-playsinline", "");
|
||||
video.preload = "auto";
|
||||
|
||||
video.load();
|
||||
|
||||
video.play().catch(() => { });
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user