Skip to content

Commit 8a2ebf7

Browse files
authored
fix: modal using flyover animations (#642)
1 parent 00febce commit 8a2ebf7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/Flyover.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,19 @@ const ModalWrapperSC = styled(ModalWrapper)<{
9797
height: '100%',
9898
width: $width,
9999
minWidth: $minWidth,
100-
'@keyframes popIn': {
100+
'@keyframes slideIn': {
101101
from: { transform: 'translateX(100%)', opacity: 0 },
102102
to: { transform: 'translateX(0)', opacity: 1 },
103103
},
104-
'@keyframes popOut': {
104+
'@keyframes slideOut': {
105105
from: { transform: 'translateX(0)', opacity: 1 },
106106
to: { transform: 'translateX(100%)', opacity: 0 },
107107
},
108108
'&[data-state="open"]': {
109-
animation: `popIn ${ANIMATION_SPEED} ease-out`,
109+
animation: `slideIn ${ANIMATION_SPEED} ease-out`,
110110
},
111111
'&[data-state="closed"]': {
112-
animation: `popOut ${ANIMATION_SPEED} ease-out`,
112+
animation: `slideOut ${ANIMATION_SPEED} ease-out`,
113113
},
114114
}))
115115

0 commit comments

Comments
 (0)