anicollection
Version:
AniCollection, The easiest way to find, use and share CSS3 animations.
34 lines (32 loc) • 603 B
CSS
/*
*@name swing
*@className swing animated
*@cssCode true
*@editionLink codepen.io
*@author Dan Eden
*@source Animate.css
*@sourceUrl http://daneden.github.io/animate.css/
*@issues https://github.com/daneden/animate.css/issues
*@license MIT
*/
@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)
}
}
.swing {
transform-origin: top center;
animation-name: swing
}