/*! * found in: - http://www.theappguruz.com/tag-tools/web/CSSAnimations/ * Any problem? - use https://github.com/daneden/animate.css */ .shake { position:relative; -webkit-animation-name: shake; animation-name: shake; -webkit-animation-duration: 7.5s; animation-duration: 7.5s; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; -webkit-animation-fill-mode: both; animation-fill-mode: both; } @-webkit-keyframes shake { 0%, 100% { left: 0px; } 10%, 30%, 50%, 70%, 90% { left: 10px; } 20%, 40%, 60%, 80% { left: -10px; } } @keyframes shake { 0%, 100% { left: 0px; } 10%, 30%, 50%, 70%, 90% { left: 10px; } 20%, 40%, 60%, 80% { left: -10px; } }