Changed shake animation so it uses CSS transform: translateX