Last active
December 10, 2015 01:58
-
-
Save JohannesFischer/04f9397a83de9a7b7535 to your computer and use it in GitHub Desktop.
collection of keyframe animations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@keyframes bounceIn { | |
from, 20%, 40%, 60%, 80%, 100% { | |
animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); | |
} | |
0% { | |
opacity: 0; | |
transform: scale3d(.3, .3, .3); | |
} | |
20% { | |
transform: scale3d(1.1, 1.1, 1.1); | |
} | |
40% { | |
transform: scale3d(.9, .9, .9); | |
} | |
60% { | |
opacity: 1; | |
transform: scale3d(1.03, 1.03, 1.03); | |
} | |
80% { | |
transform: scale3d(.97, .97, .97); | |
} | |
100% { | |
opacity: 1; | |
transform: scale3d(1, 1, 1); | |
} | |
} | |
@keyframes fadeIn { | |
0% { | |
opacity: 0; | |
} | |
100% { | |
opacity: 1; | |
} | |
} | |
@keyframes fly { | |
0% { opacity: 0; transform: translate(-150px, 150px); } | |
25% { opacity: 1; } | |
100% { transform: translate(0, 0); } | |
} | |
@keyframes pulse { | |
from { | |
opacity: 1; | |
} | |
33% { | |
opacity: .5; | |
} | |
50% { | |
opacity: 0; | |
} | |
66% { | |
opacity: .5; | |
} | |
to { | |
opacity: 1; | |
} | |
} | |
@keyframes shake { | |
10%, 90% { | |
transform: translate3d(-1px, 0, 0); | |
} | |
20%, 80% { | |
transform: translate3d(2px, 0, 0); | |
} | |
30%, 50%, 70% { | |
transform: translate3d(-4px, 0, 0); | |
} | |
40%, 60% { | |
transform: translate3d(4px, 0, 0); | |
} | |
} | |
@keyframes swing { | |
20% { | |
transform: rotate3d(0, 0, 1, 15deg); | |
} | |
40% { | |
transform: rotate3d(0, 0, 1, -10deg); | |
} | |
60% { | |
transform: rotate3d(0, 0, 1, 5deg); | |
} | |
80% { | |
transform: rotate3d(0, 0, 1, -5deg); | |
} | |
100% { | |
transform: rotate3d(0, 0, 1, 0deg); | |
} | |
} | |
@keyframes zoomIn { | |
from { | |
opacity: 0; | |
transform: scale3d(.3, .3, .3); | |
} | |
50% { | |
opacity: 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment