lychee/assets/scss/animations.scss

121 lines
2.1 KiB
SCSS
Raw Normal View History

/**
* @name animations.css
* @author Tobias Reich
* @copyright 2014 by Tobias Reich
*/
/* Animation Setter ------------------------------------------------*/
.fadeIn {
animation-name: fadeIn;
animation-duration: .3s;
2014-03-16 18:23:23 +00:00
animation-fill-mode: forwards;
animation-timing-function: cubic-bezier(0.51,.92,.24,1.15); }
.fadeOut {
animation-name: fadeOut;
animation-duration: .3s;
2014-03-16 18:23:23 +00:00
animation-fill-mode: forwards;
animation-timing-function: cubic-bezier(0.51,.92,.24,1.15); }
.contentZoomIn {
animation-name: zoomIn;
animation-duration: .2s;
2014-03-16 18:23:23 +00:00
animation-fill-mode: forwards;
animation-timing-function: cubic-bezier(0.51,.92,.24,1); }
.contentZoomOut {
animation-name: zoomOut;
animation-duration: .2s;
2014-03-16 18:23:23 +00:00
animation-fill-mode: forwards;
animation-timing-function: cubic-bezier(0.51,.92,.24,1); }
/* moveUp ------------------------------------------------*/
@keyframes moveUp {
0% {
2014-03-16 18:23:23 +00:00
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% {
2014-03-16 20:09:54 +00:00
opacity: 0.3;
}
100% {
opacity: 1;
}
2014-01-28 13:04:09 +00:00
}