Shake Animation Effect
Run
HTML
Shake
CSS
.circle { width: 100px; height: 100px; background: #ad132a; border-radius: 50%; } .shake { animation-name: shake; animation-duration: 1s; animation-iteration-count: infinite; animation-delay: 1s; animation-fill-mode: both; } @keyframes shake2 { 0%, 100% { transform: translate3d(0, 0, 0); } 10%, 30%, 50%, 70%, 90% { transform: translate3d(-10px, 0, 0); } 20%, 40%, 60%, 80% { transform: translate3d(10px, 0, 0); } }
Follow Us