Skip to content

Commit

Permalink
fix: modal using flyover animations (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsladerman authored Sep 20, 2024
1 parent 00febce commit 8a2ebf7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Flyover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ const ModalWrapperSC = styled(ModalWrapper)<{
height: '100%',
width: $width,
minWidth: $minWidth,
'@keyframes popIn': {
'@keyframes slideIn': {
from: { transform: 'translateX(100%)', opacity: 0 },
to: { transform: 'translateX(0)', opacity: 1 },
},
'@keyframes popOut': {
'@keyframes slideOut': {
from: { transform: 'translateX(0)', opacity: 1 },
to: { transform: 'translateX(100%)', opacity: 0 },
},
'&[data-state="open"]': {
animation: `popIn ${ANIMATION_SPEED} ease-out`,
animation: `slideIn ${ANIMATION_SPEED} ease-out`,
},
'&[data-state="closed"]': {
animation: `popOut ${ANIMATION_SPEED} ease-out`,
animation: `slideOut ${ANIMATION_SPEED} ease-out`,
},
}))

Expand Down

0 comments on commit 8a2ebf7

Please sign in to comment.