Skip to content

Commit cc0b0ee

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

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,7 +5003,6 @@ class FastSearchCard extends HTMLElement {
50035003
return window.innerWidth <= 768;
50045004
}
50055005

5006-
50075006
showCategoryButtons() {
50085007
this.collapsePanel();
50095008

@@ -5023,14 +5022,20 @@ class FastSearchCard extends HTMLElement {
50235022
categoryButtons.style.opacity = '';
50245023
categoryButtons.style.filter = '';
50255024

5026-
categoryButtons.animate([
5025+
// NUR EINE ANIMATION:
5026+
const animation = categoryButtons.animate([
50275027
{ opacity: 0, transform: 'translateX(0px) scale(0.9)', filter: 'blur(10px) contrast(20)' },
50285028
{ opacity: 1, transform: 'translateX(0px) scale(1)', filter: 'blur(0px) contrast(1)' }
50295029
], {
50305030
duration: 400,
50315031
easing: 'cubic-bezier(0.16, 1, 0.3, 1)'
5032-
// fill: 'forwards' ENTFERNT!
50335032
});
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+
});
50345039
}
50355040

50365041
hideCategoryButtons() {

0 commit comments

Comments
 (0)