Skip to content

Commit 54af116

Browse files
authored
Update fast-search-card.js
1 parent 059c908 commit 54af116

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

dist/fast-search-card.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5003,6 +5003,7 @@ class FastSearchCard extends HTMLElement {
50035003
return window.innerWidth <= 768;
50045004
}
50055005

5006+
50065007
showCategoryButtons() {
50075008
this.collapsePanel();
50085009

@@ -5016,13 +5017,17 @@ class FastSearchCard extends HTMLElement {
50165017
const categoryButtons = this.shadowRoot.querySelector('.category-buttons');
50175018
this.isMenuView = true;
50185019
categoryButtons.classList.add('visible');
5019-
5020+
5021+
// RESET VOR ANIMATION:
5022+
categoryButtons.style.transform = '';
5023+
categoryButtons.style.opacity = '';
5024+
categoryButtons.style.filter = '';
5025+
50205026
categoryButtons.animate([
50215027
{ opacity: 0, transform: 'translateX(0px) scale(0.9)', filter: 'blur(10px) contrast(20)' },
50225028
{ opacity: 1, transform: 'translateX(0px) scale(1)', filter: 'blur(0px) contrast(1)' }
50235029
], { duration: 400, easing: 'cubic-bezier(0.16, 1, 0.3, 1)', fill: 'forwards' });
5024-
5025-
}
5030+
}
50265031

50275032
hideCategoryButtons() {
50285033
// NEU: Search-Wrapper wieder anzeigen

0 commit comments

Comments
 (0)