Skip to content

Commit 0cd8049

Browse files
authored
Update fast-search-card.js
1 parent bc2d334 commit 0cd8049

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

dist/fast-search-card.js

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ class FastSearchCard extends HTMLElement {
12581258
gap: 12px;
12591259
opacity: 0;
12601260
transform: translateX(20px);
1261-
filter: url(#categoryGooey);
1261+
filter: url(#categoryGooey); /* NEU: Filter anwenden */
12621262
}
12631263

12641264
/* Mobile: Category-Buttons zentrieren */
@@ -5075,8 +5075,27 @@ class FastSearchCard extends HTMLElement {
50755075

50765076
const categoryButtons = this.shadowRoot.querySelector('.category-buttons');
50775077
if (!this.isMenuView) return;
5078-
const animation = categoryButtons.animate([{ opacity: 1, transform: 'translateX(0) scale(1)' }, { opacity: 0, transform: 'translateX(20px) scale(0.9)' }], { duration: 300, easing: 'ease-in', fill: 'forwards' });
5079-
animation.finished.then(() => { categoryButtons.classList.remove('visible'); this.isMenuView = false; });
5078+
5079+
// 🌊 REVERSE LIQUID ANIMATION
5080+
const animation = categoryButtons.animate([
5081+
{ opacity: 1, transform: 'translateX(0) scale(1)' },
5082+
{ opacity: 0, transform: 'translateX(20px) scale(0.9)' }
5083+
], {
5084+
duration: 300,
5085+
easing: 'ease-in',
5086+
fill: 'forwards'
5087+
});
5088+
5089+
animation.finished.then(() => {
5090+
categoryButtons.classList.remove('visible');
5091+
this.isMenuView = false;
5092+
5093+
// Blobs auch verstecken falls sichtbar
5094+
const blobContainer = this.shadowRoot.querySelector('#blobContainer');
5095+
if (blobContainer) {
5096+
blobContainer.style.display = 'none';
5097+
}
5098+
});
50805099
}
50815100

50825101
handleCategorySelect(selectedButton) {

0 commit comments

Comments
 (0)