Skip to content

Commit d7d8cc9

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

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

dist/fast-search-card.js

Lines changed: 2 additions & 20 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,26 +5017,7 @@ class FastSearchCard extends HTMLElement {
50165017
const categoryButtons = this.shadowRoot.querySelector('.category-buttons');
50175018
this.isMenuView = true;
50185019
categoryButtons.classList.add('visible');
5019-
5020-
// RESET VOR ANIMATION:
5021-
categoryButtons.style.transform = '';
5022-
categoryButtons.style.opacity = '';
5023-
categoryButtons.style.filter = '';
5024-
5025-
// NUR EINE ANIMATION:
5026-
const animation = categoryButtons.animate([
5027-
{ opacity: 0, transform: 'translateX(0px) scale(0.9)', filter: 'blur(10px) contrast(20)' },
5028-
{ opacity: 1, transform: 'translateX(0px) scale(1)', filter: 'blur(0px) contrast(1)' }
5029-
], {
5030-
duration: 400,
5031-
easing: 'cubic-bezier(0.16, 1, 0.3, 1)'
5032-
});
5033-
5034-
animation.finished.then(() => {
5035-
categoryButtons.style.opacity = '1';
5036-
categoryButtons.style.transform = 'translateX(0px) scale(1)';
5037-
categoryButtons.style.filter = 'blur(0px) contrast(1)';
5038-
});
5020+
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' });
50395021
}
50405022

50415023
hideCategoryButtons() {

0 commit comments

Comments
 (0)