Skip to content

Commit

Permalink
faster animations
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Nov 12, 2021
1 parent 2fca014 commit b98b10c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/resources/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Components with the <sl-badge type="warning" pill>Experimental</sl-badge> badge

_During the beta period, these restrictions may be relaxed in the event of a mission-critical bug._ 馃悰

## Next

- Slightly faster animations for showing and hiding `<sl-dropdown>`

## 2.0.0-beta.60

- Added React examples and CodePen links to all components
Expand Down
4 changes: 2 additions & 2 deletions src/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,15 +442,15 @@ setDefaultAnimation('dropdown.show', {
{ opacity: 0, transform: 'scale(0.9)' },
{ opacity: 1, transform: 'scale(1)' }
],
options: { duration: 150, easing: 'ease' }
options: { duration: 100, easing: 'ease' }
});

setDefaultAnimation('dropdown.hide', {
keyframes: [
{ opacity: 1, transform: 'scale(1)' },
{ opacity: 0, transform: 'scale(0.9)' }
],
options: { duration: 150, easing: 'ease' }
options: { duration: 100, easing: 'ease' }
});

declare global {
Expand Down

0 comments on commit b98b10c

Please sign in to comment.