mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 14:56:01 +00:00
fix gamecard transition
This commit is contained in:
@@ -204,6 +204,7 @@ onBeforeUnmount(() => {
|
||||
:contain="boxartStyleCover"
|
||||
:class="{
|
||||
'opacity-0': isVideoPlaying && localVideoPath,
|
||||
transitioning: !isVideoPlaying && localVideoPath,
|
||||
}"
|
||||
:src="largeCover || fallbackCoverImage"
|
||||
:alt="rom.name || 'Game'"
|
||||
@@ -228,7 +229,9 @@ onBeforeUnmount(() => {
|
||||
</v-img>
|
||||
<div
|
||||
class="hover-video-container position-absolute opacity-0"
|
||||
:class="{ 'opacity-100': isVideoPlaying && localVideoPath }"
|
||||
:class="{
|
||||
'opacity-100 transitioning': isVideoPlaying && localVideoPath,
|
||||
}"
|
||||
>
|
||||
<video
|
||||
ref="hover-video-ref"
|
||||
@@ -318,6 +321,10 @@ onBeforeUnmount(() => {
|
||||
.hover-video-container {
|
||||
top: 15%;
|
||||
transition: opacity 0.25s ease;
|
||||
}
|
||||
|
||||
.v-img.transitioning,
|
||||
.hover-video-container.transitioning {
|
||||
transition-delay: 0.1s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user