/*This will shake the element from side to side.*/ @keyframes shake { 30% { transform: rotate(20deg); } 60% { transform: rotate(-40deg); } }