Skip to content

Commit f6b3664

Browse files
authored
Update fast-search-card.js
1 parent d7d8cc9 commit f6b3664

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

dist/fast-search-card.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5020,6 +5020,7 @@ class FastSearchCard extends HTMLElement {
50205020
categoryButtons.animate([{ opacity: 0, transform: 'translateX(20px) scale(0.9)' }, { opacity: 1, transform: 'translateX(0) scale(1)' }], { duration: 400, easing: 'cubic-bezier(0.16, 1, 0.3, 1)', fill: 'forwards' });
50215021
}
50225022

5023+
50235024
hideCategoryButtons() {
50245025
// NEU: Search-Wrapper wieder anzeigen
50255026
if (this.isMobile()) {
@@ -5032,8 +5033,20 @@ class FastSearchCard extends HTMLElement {
50325033
const categoryButtons = this.shadowRoot.querySelector('.category-buttons');
50335034
if (!this.isMenuView) return;
50345035

5035-
// NEUE GOOEY REVERSE ANIMATION:
5036-
this.animateGooeyCollapse(categoryButtons);
5036+
const animation = categoryButtons.animate([
5037+
{ opacity: 1, transform: 'translateX(0) scale(1)' },
5038+
{ opacity: 0, transform: 'translateX(20px) scale(0.9)' }
5039+
], { duration: 300, easing: 'ease-in', fill: 'forwards' });
5040+
5041+
animation.finished.then(() => {
5042+
categoryButtons.classList.remove('visible');
5043+
this.isMenuView = false;
5044+
5045+
// NEUE ZEILE - STATE ZURÜCKSETZEN:
5046+
categoryButtons.style.transform = '';
5047+
categoryButtons.style.opacity = '';
5048+
categoryButtons.style.filter = '';
5049+
});
50375050
}
50385051

50395052
animateGooeyExpansion(container, buttons) {

0 commit comments

Comments
 (0)