mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Fix popup animation
This commit is contained in:
@@ -22,7 +22,9 @@ export class PopupStack extends Component {
|
|||||||
<ReactCSSTransitionGroup
|
<ReactCSSTransitionGroup
|
||||||
transitionName={{
|
transitionName={{
|
||||||
enter: styles.trEnter,
|
enter: styles.trEnter,
|
||||||
leave: styles.trLeave
|
enterActive: styles.trEnterActive,
|
||||||
|
leave: styles.trLeave,
|
||||||
|
leaveActive: styles.trLeaveActive
|
||||||
}}
|
}}
|
||||||
transitionEnterTimeout={500}
|
transitionEnterTimeout={500}
|
||||||
transitionLeaveTimeout={500}
|
transitionLeaveTimeout={500}
|
||||||
|
@@ -112,7 +112,7 @@ $popupPadding: 20px;
|
|||||||
transform: translateY(-30%);
|
transform: translateY(-30%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&-active {
|
&Active {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transition: opacity 0.2s ease-in;
|
transition: opacity 0.2s ease-in;
|
||||||
|
|
||||||
@@ -132,7 +132,7 @@ $popupPadding: 20px;
|
|||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
&-active {
|
&Active {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 0.2s ease-in;
|
transition: opacity 0.2s ease-in;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user