ant-design/style/core/motion.less

157 lines
2.6 KiB
Plaintext
Raw Normal View History

2015-06-15 21:18:08 +08:00
.effect() {
2015-06-17 20:09:47 +08:00
animation-duration: 0.25s;
2015-06-15 21:18:08 +08:00
animation-fill-mode: both;
display: block !important;
2015-06-09 15:21:44 +08:00
}
2015-06-15 21:18:08 +08:00
.zoom-enter {
opacity: 0;
.effect();
animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28);
animation-play-state: paused;
2015-06-09 15:21:44 +08:00
}
2015-06-15 21:18:08 +08:00
.zoom-leave {
.effect();
animation-timing-function: cubic-bezier(0.6, -0.3, 0.74, 0.05);
animation-play-state: paused;
2015-06-09 15:21:44 +08:00
}
2015-06-15 21:18:08 +08:00
.zoom-enter.zoom-enter-active {
animation-name: zoomIn;
animation-play-state: running;
2015-06-09 15:21:44 +08:00
}
2015-06-15 21:18:08 +08:00
.zoom-leave.zoom-leave-active {
animation-name: zoomOut;
animation-play-state: running;
2015-06-09 15:21:44 +08:00
}
@keyframes zoomIn {
0% {
opacity: 0;
transform-origin: 50% 50%;
transform: scale(0, 0);
}
100% {
opacity: 1;
transform-origin: 50% 50%;
transform: scale(1, 1);
}
}
@keyframes zoomOut {
0% {
opacity: 1;
transform-origin: 50% 50%;
transform: scale(1, 1);
}
100% {
opacity: 0;
transform-origin: 50% 50%;
transform: scale(0, 0);
}
}
2015-06-15 21:18:08 +08:00
.slide-up-enter {
.effect();
transform-origin: 0 0;
opacity: 0;
animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
animation-play-state: paused;
2015-06-09 15:21:44 +08:00
}
2015-06-15 21:18:08 +08:00
.slide-up-leave {
.effect();
transform-origin: 0 0;
opacity: 1;
animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
animation-play-state: paused;
2015-06-09 15:21:44 +08:00
}
2015-06-15 21:18:08 +08:00
.slide-up-enter.slide-up-enter-active {
animation-name: slideUpIn;
animation-play-state: running;
2015-06-09 15:21:44 +08:00
}
2015-06-15 21:18:08 +08:00
.slide-up-leave.slide-up-leave-active {
animation-name: slideUpOut;
animation-play-state: running;
2015-06-09 15:21:44 +08:00
}
2015-06-15 21:18:08 +08:00
@keyframes slideUpIn {
2015-06-09 15:21:44 +08:00
0% {
opacity: 0;
transform-origin: 0% 0%;
transform: scaleY(0);
}
100% {
opacity: 1;
transform-origin: 0% 0%;
transform: scaleY(1);
}
}
2015-06-15 21:18:08 +08:00
@keyframes slideUpOut {
2015-06-09 15:21:44 +08:00
0% {
opacity: 1;
transform-origin: 0% 0%;
transform: scaleY(1);
}
100% {
opacity: 0;
transform-origin: 0% 0%;
transform: scaleY(0);
}
}
2015-06-15 21:18:08 +08:00
.fade-enter {
opacity: 0;
.effect();
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
animation-play-state: paused;
}
.fade-leave {
.effect();
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
animation-play-state: paused;
}
.fade-enter.fade-enter-active {
animation-name: fadeIn;
animation-play-state: running;
}
.fade-leave.fade-leave-active {
animation-name: fadeOut;
animation-play-state: running;
2015-06-09 15:21:44 +08:00
}
2015-06-15 21:18:08 +08:00
@keyframes fadeIn {
2015-06-09 15:21:44 +08:00
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
2015-06-15 21:18:08 +08:00
@keyframes fadeOut {
2015-06-09 15:21:44 +08:00
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
2015-06-16 10:49:49 +08:00
@keyframes loadingCircle {
0% {
transform-origin: 50% 50%;
transform: rotate(0deg);
}
100% {
transform-origin: 50% 50%;
transform: rotate(360deg);
}
}