Skip to content

Commit 4f70f04

Browse files
authored
Update fast-search-card.js
1 parent d099290 commit 4f70f04

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

dist/fast-search-card.js

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14797,26 +14797,15 @@ class FastSearchCard extends HTMLElement {
1479714797
const videoId = `video-${item.id.replace(/\./g, '-')}`;
1479814798

1479914799
return `
14800-
<video class="icon-video" id="${videoId}" autoplay muted playsinline>
14800+
<video class="icon-video" id="${videoId}" autoplay muted playsinline
14801+
oncanplay="this.classList.add('loaded')">
1480114802
<source src="${videoUrl}" type="video/mp4">
1480214803
<source src="${videoUrl.replace('.mp4', '.webm')}" type="video/webm">
1480314804
</video>
1480414805
`;
1480514806
}
1480614807

14807-
animateVideoIn(videoElement) {
14808-
if (!videoElement) return;
14809-
14810-
// Fade-in Animation mit Web Animations API
14811-
videoElement.animate([
14812-
{ opacity: 0, transform: 'scale(0.95)' },
14813-
{ opacity: 1, transform: 'scale(1)' }
14814-
], {
14815-
duration: 600,
14816-
easing: 'cubic-bezier(0.16, 1, 0.3, 1)',
14817-
fill: 'forwards'
14818-
});
14819-
}
14808+
1482014809

1482114810

1482214811

0 commit comments

Comments
 (0)