You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
718 B
31 lines
718 B
10 years ago
|
.motion-common() {
|
||
9 years ago
|
animation-duration: .2s;
|
||
9 years ago
|
animation-fill-mode: both;
|
||
|
}
|
||
|
|
||
|
.motion-common-leave() {
|
||
|
animation-duration: .2s;
|
||
10 years ago
|
animation-fill-mode: both;
|
||
10 years ago
|
}
|
||
|
|
||
10 years ago
|
.make-motion(@className, @keyframeName) {
|
||
9 years ago
|
.@{className}-enter,
|
||
|
.@{className}-appear {
|
||
10 years ago
|
.motion-common();
|
||
10 years ago
|
animation-play-state: paused;
|
||
|
}
|
||
|
.@{className}-leave {
|
||
9 years ago
|
.motion-common-leave();
|
||
10 years ago
|
animation-play-state: paused;
|
||
|
}
|
||
9 years ago
|
.@{className}-enter.@{className}-enter-active,
|
||
|
.@{className}-appear.@{className}-appear-active {
|
||
10 years ago
|
animation-name: ~"@{keyframeName}In";
|
||
|
animation-play-state: running;
|
||
|
}
|
||
|
.@{className}-leave.@{className}-leave-active {
|
||
|
animation-name: ~"@{keyframeName}Out";
|
||
|
animation-play-state: running;
|
||
|
}
|
||
10 years ago
|
}
|