Homepage/css/animations.css

109 lines
2.3 KiB
CSS
Raw Normal View History

2018-08-01 10:30:57 +00:00
/*Animations*/
.float {
-webkit-animation: float 7s infinite;
2018-08-01 10:30:57 +00:00
animation: float 7s infinite;
-webkit-transition: cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.2s;
-o-transition: cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.2s;
2018-08-01 10:30:57 +00:00
transition: cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.2s;
}
2018-08-28 13:51:13 +00:00
.float:hover {
-webkit-animation-play-state: paused;
-moz-animation-play-state: paused;
-o-animation-play-state: paused;
animation-play-state: paused;
}
2018-08-01 10:30:57 +00:00
.slide-top {
-webkit-animation: slide-in-top 1s;
2018-08-01 10:30:57 +00:00
animation: slide-in-top 1s;
}
.slide-left {
-webkit-animation: slide-in-left 1s;
2018-08-01 10:30:57 +00:00
animation: slide-in-left 1s;
}
@-webkit-keyframes float {
0% {
-webkit-transform: translateY(4px);
transform: translateY(4px);
}
50% {
-webkit-transform: translateY(-4px);
transform: translateY(-4px);
}
100% {
-webkit-transform: translateY(4px);
transform: translateY(4px);
}
}
2018-08-01 10:30:57 +00:00
@keyframes float {
0% {
-webkit-transform: translateY(4px);
2018-08-01 10:30:57 +00:00
transform: translateY(4px);
}
50% {
-webkit-transform: translateY(-4px);
2018-08-01 10:30:57 +00:00
transform: translateY(-4px);
}
100% {
-webkit-transform: translateY(4px);
2018-08-01 10:30:57 +00:00
transform: translateY(4px);
}
}
@-webkit-keyframes slide-in-left {
0% {
opacity: 0;
-webkit-transform: translateX(-30px);
transform: translateX(-30px);
}
100% {
opacity: 1;
-webkit-transform: translateX(0);
transform: translateX(0);
}
}
2018-08-01 10:30:57 +00:00
@keyframes slide-in-left {
0% {
opacity: 0;
-webkit-transform: translateX(-30px);
2018-08-01 10:30:57 +00:00
transform: translateX(-30px);
}
100% {
opacity: 1;
-webkit-transform: translateX(0);
2018-08-01 10:30:57 +00:00
transform: translateX(0);
}
}
@-webkit-keyframes slide-in-top {
0% {
opacity: 0;
-webkit-transform: translateY(-30px);
transform: translateY(-30px);
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0);
}
}
2018-08-01 10:30:57 +00:00
@keyframes slide-in-top {
0% {
opacity: 0;
-webkit-transform: translateY(-30px);
2018-08-01 10:30:57 +00:00
transform: translateY(-30px);
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
2018-08-01 10:30:57 +00:00
transform: translateY(0);
}
}