metro4
Version:
The front-end framework for Build responsive, mobile-first projects on the web with the first front-end component library in Metro Style
88 lines (87 loc) • 2.1 kB
CSS
.ani-swoopInTop {
animation-name: swoopInTop;
animation-duration: 0.5s;
}
.ani-swoopOutTop {
animation-name: swoopOutTop;
animation-duration: 0.5s;
}
@keyframes swoopInTop {
0% {
opacity: 0;
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
transform: scaleY(1.5) translate3d(0, -400px, 0);
}
40% {
opacity: 1;
animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
transform: scaleY(1.2) translate3d(0, 0, 0);
}
65% {
transform: scaleY(1) translate3d(0, 20px, 0);
}
100% {
animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
transform: scaleY(1) translate3d(0, 0, 0);
}
}
@keyframes swoopOutTop {
0% {
animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
transform: scaleY(1) translate3d(0, 0, 0);
}
40% {
opacity: 1;
transform: scaleY(1) translate3d(0, 20px, 0);
}
60% {
animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
transform: scaleY(1.2) translate3d(0, 0, 0);
}
100% {
opacity: 0;
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
transform: scaleY(1.5) translate3d(0, -400px, 0);
}
}
.ani-rollInLeft {
animation-name: rollInLeft;
animation-duration: .5s;
}
@keyframes rollInLeft {
0% {
animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
transform: translateX(-400px) rotate(445deg);
opacity: 0;
}
30% {
opacity: 1;
}
50% {
transform: translateX(20px) rotate(20deg);
}
100% {
animation-timing-function: cubic-bezier(0.455, 0.03, 0.515, 0.955);
transform: translateX(0) rotate(0deg);
}
}
.ani-rollOutRight {
animation-name: rollOutRight;
animation-duration: .5s;
}
@keyframes rollOutRight {
0% {
opacity: 1;
animation-timing-function: cubic-bezier(0.455, 0.03, 0.515, 0.955);
transform: translateX(0) rotate(0deg);
}
40% {
opacity: 1;
transform: translateX(-20px) rotate(20deg);
}
100% {
opacity: 0;
animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
transform: translateX(400px) rotate(445deg);
}
}