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.
lychee/src/styles/_animations.scss

105 lines
1.6 KiB

/* Animation Setter ------------------------------------------------*/
.fadeIn {
animation-name: fadeIn;
animation-duration: .3s;
animation-fill-mode: forwards;
animation-timing-function: $timing;
}
.fadeOut {
animation-name: fadeOut;
animation-duration: .3s;
animation-fill-mode: forwards;
animation-timing-function: $timing;
}
/* moveUp ------------------------------------------------*/
@keyframes moveUp {
0% {
transform: translateY(100px);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
/* fadeIn ------------------------------------------------*/
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/* fadeOut ------------------------------------------------*/
@keyframes fadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
/* moveBackground ------------------------------------------------*/
@keyframes moveBackground {
0% {
background-position-x: 0px;
}
100% {
background-position-x: -100px;
}
}
/* zoomIn ------------------------------------------------*/
@keyframes zoomIn {
0% {
opacity: 0;
transform: scale(.8);
}
100% {
opacity: 1;
transform: scale(1);
}
}
/* zoomOut ------------------------------------------------*/
@keyframes zoomOut {
0% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0;
transform: scale(.8);
}
}
/* popIn ------------------------------------------------*/
@keyframes popIn {
0% {
opacity: 0;
transform: scale(0);
}
100% {
opacity: 1;
transform: scale(1);
}
}
/* pulse ------------------------------------------------*/
@keyframes pulse {
0% {
opacity: 1;
}
50% {
opacity: .3;
}
100% {
opacity: 1;
}
}