Skip to content

Commit

Permalink
bugfix: video embed animations
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceOrunitia committed Aug 12, 2024
1 parent b54a1b4 commit 761abf2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion layouts/shortcodes/blocks/video-embed.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ <h6 class="mb-2 ps-3 text-muted">
videoOverlay.disabled = true;
fadeIn(dataAccept);
videoCard.classList.add("permission");
videoOverlay.disabled = false;
setTimeout(() => {
videoOverlay.disabled = false;
videoCard.classList.remove("permission");
}, 2000);
});

// Accept
Expand Down
3 changes: 3 additions & 0 deletions static/css/rosenpass.css
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ background-color: #00000095;
}

#video-card {
transition: all 1s;
opacity: 0.7;
background-color: #FFF;
box-shadow: 0.25rem 0.25rem 0.25rem #00000050;
Expand Down Expand Up @@ -739,6 +740,7 @@ background-color: #00000095;
}

#video {
transition: all 1s;
border-radius: 1rem;
position: absolute;
top: 0;
Expand All @@ -750,6 +752,7 @@ background-color: #00000095;
}

#video-screenshot{
transition: all 1s;
border-radius: 1rem;
}

Expand Down

0 comments on commit 761abf2

Please sign in to comment.