Skip to content

Commit 2e3abb1

Browse files
authored
Update fast-search-card.js
1 parent 792ff05 commit 2e3abb1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

dist/fast-search-card.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,7 @@ class FastSearchCard extends HTMLElement {
11451145
position: relative;
11461146
}
11471147

1148+
11481149
.icon-video {
11491150
position: absolute;
11501151
top: 0;
@@ -1153,9 +1154,9 @@ class FastSearchCard extends HTMLElement {
11531154
height: 100%;
11541155
object-fit: cover;
11551156
border-radius: 20px;
1156-
z-index: 1;
1157-
opacity: 0;
1158-
transition: opacity 0.3s ease;
1157+
z-index: 2; /* Höher als background */
1158+
opacity: 1; /* Direkt sichtbar */
1159+
background: black; /* Schwarzer Hintergrund während Laden */
11591160
}
11601161

11611162
.icon-video[autoplay] {
@@ -14771,12 +14772,12 @@ class FastSearchCard extends HTMLElement {
1477114772
if (!videoUrl) return '';
1477214773

1477314774
return `
14774-
<video class="icon-video" autoplay muted loop playsinline>
14775+
<video class="icon-video" autoplay muted playsinline onended="this.currentTime=this.duration">
1477514776
<source src="${videoUrl}" type="video/mp4">
1477614777
<source src="${videoUrl.replace('.mp4', '.webm')}" type="video/webm">
1477714778
</video>
1477814779
`;
14779-
}
14780+
}
1478014781

1478114782

1478214783

0 commit comments

Comments
 (0)