Skip to content

Commit

Permalink
hero video fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshvdw committed Dec 13, 2024
1 parent 44778bc commit 54c4d63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dist/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/app.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/global/dynamicVideos.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function setVideoSource(video) {
// Check if the current source is already set
if (videoElem.getAttribute("src") !== videoSrc) {
videoElem.src = videoSrc;
if (video == "metamorphoses") videoElem.play(); // catch to always play tesselation
}

// Preload only if the video is already in the viewport
Expand Down

0 comments on commit 54c4d63

Please sign in to comment.