Skip to content

Commit 70007a3

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

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
@@ -5017,7 +5017,12 @@ class FastSearchCard extends HTMLElement {
50175017
const categoryButtons = this.shadowRoot.querySelector('.category-buttons');
50185018
this.isMenuView = true;
50195019
categoryButtons.classList.add('visible');
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' });
5020+
5021+
categoryButtons.animate([
5022+
{ opacity: 0, transform: 'translateX(20px) scale(0.9)', filter: 'blur(8px)' },
5023+
{ opacity: 1, transform: 'translateX(0) scale(1)', filter: 'blur(0px)' }
5024+
], { duration: 400, easing: 'cubic-bezier(0.16, 1, 0.3, 1)', fill: 'forwards' });
5025+
50215026
}
50225027

50235028

@@ -5034,8 +5039,8 @@ class FastSearchCard extends HTMLElement {
50345039
if (!this.isMenuView) return;
50355040

50365041
const animation = categoryButtons.animate([
5037-
{ opacity: 1, transform: 'translateX(0) scale(1)' },
5038-
{ opacity: 0, transform: 'translateX(20px) scale(0.9)' }
5042+
{ opacity: 1, transform: 'translateX(0) scale(1)', filter: 'blur(0px)' },
5043+
{ opacity: 0, transform: 'translateX(20px) scale(0.9)', filter: 'blur(8px)' }
50395044
], { duration: 300, easing: 'ease-in', fill: 'forwards' });
50405045

50415046
animation.finished.then(() => {

0 commit comments

Comments
 (0)