rsuite
Version:
A suite of react components
35 lines (29 loc) • 559 B
text/less
// Bounce
.rs-anim-bounce-in {
animation-name: bounceIn;
.animation-common(cubic-bezier(0.68, -0.55, 0.27, 1.55)); // Ease in out
@keyframes bounceIn {
from {
opacity: 0;
transform: scale(0.8);
}
to {
opacity: 1;
transform: scale(1);
}
}
}
.rs-anim-bounce-out {
animation-name: bounceOut;
.animation-common(cubic-bezier(0.4, 0, 1, 1)); //Fast out
@keyframes bounceOut {
from {
opacity: 1;
transform: scale(1);
}
to {
opacity: 0;
transform: scale(0.8);
}
}
}