123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- /*do not import this file except components/style/index.less*/
- .lz {
- .effect() {
- animation-duration: 0.2s;
- animation-fill-mode: both;
- animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
- }
- &-fade-enter,
- &-fade-appear {
- opacity: 0;
- .effect();
- animation-play-state: paused;
- }
- &-fade-leave {
- .effect();
- animation-play-state: paused;
- }
- &-fade-enter&-fade-enter-active,
- &-fade-appear&-fade-appear-active {
- animation-name: amFadeIn;
- animation-play-state: running;
- }
- &-fade-leave&-fade-leave-active {
- animation-name: amFadeOut;
- animation-play-state: running;
- }
- @keyframes amFadeIn {
- 0% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
- }
- @keyframes amFadeOut {
- 0% {
- opacity: 1;
- }
- 100% {
- opacity: 0;
- }
- }
- &-slide-up-enter,
- &-slide-up-appear {
- transform: translate(0, 100%);
- }
- &-slide-up-enter,
- &-slide-up-appear,
- &-slide-up-leave {
- .effect();
- animation-play-state: paused;
- }
- &-slide-up-enter&-slide-up-enter-active,
- &-slide-up-appear&-slide-up-appear-active {
- animation-name: amSlideUpIn;
- animation-play-state: running;
- }
- &-slide-up-leave&-slide-up-leave-active {
- animation-name: amSlideUpOut;
- animation-play-state: running;
- }
- @keyframes amSlideUpIn {
- 0% {
- transform: translate(0, 100%);
- }
- 100% {
- transform: translate(0, 0);
- }
- }
- @keyframes amSlideUpOut {
- 0% {
- transform: translate(0, 0);
- }
- 100% {
- transform: translate(0, 100%);
- }
- }
- &&-zoom-enter,
- &&-zoom-leave {
- display: block;
- }
- &-zoom-enter,
- &-zoom-appear {
- opacity: 0;
- .effect();
- animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28);
- animation-play-state: paused;
- }
- &-zoom-leave {
- .effect();
- animation-timing-function: cubic-bezier(0.6, -0.3, 0.74, 0.05);
- animation-play-state: paused;
- }
- &-zoom-enter&-zoom-enter-active,
- &-zoom-appear&-zoom-appear-active {
- animation-name: amZoomIn;
- animation-play-state: running;
- }
- &-zoom-leave&-zoom-leave-active {
- animation-name: amZoomOut;
- animation-play-state: running;
- }
- @keyframes amZoomIn {
- 0% {
- opacity: 0;
- transform-origin: 50% 50%;
- transform: scale(0, 0);
- }
- 100% {
- opacity: 1;
- transform-origin: 50% 50%;
- transform: scale(1, 1);
- }
- }
- @keyframes amZoomOut {
- 0% {
- opacity: 1;
- transform-origin: 50% 50%;
- transform: scale(1, 1);
- }
- 100% {
- opacity: 0;
- transform-origin: 50% 50%;
- transform: scale(0, 0);
- }
- }
- &-slide-down-enter,
- &-slide-down-appear {
- transform: translate(0, -100%);
- }
- &-slide-down-enter,
- &-slide-down-appear,
- &-slide-down-leave {
- .effect();
- animation-play-state: paused;
- }
- &-slide-down-enter&-slide-down-enter-active,
- &-slide-down-appear&-slide-down-appear-active {
- animation-name: amSlideDownIn;
- animation-play-state: running;
- }
- &-slide-down-leave&-slide-down-leave-active {
- animation-name: amSlideDownOut;
- animation-play-state: running;
- }
- @keyframes amSlideDownIn {
- 0% {
- transform: translate(0, -100%);
- }
- 100% {
- transform: translate(0, 0);
- }
- }
- @keyframes amSlideDownOut {
- 0% {
- transform: translate(0, 0);
- }
- 100% {
- transform: translate(0, -100%);
- }
- }
- }
|