Skip to content
Advertisement

Jquery animate doesn’t work with transform property

So when i try to use Jquery animate function it does’t work at all. I tried every-single thing and still doesn’t work. Here is the HTML:

JavaScript

Advertisement

Answer

I suggest using animation by adding a class with rule transform: translateX(0%). Like that:

JavaScript

Add animation delay transition: .5s to .error-box and add this class to your css:

JavaScript

As a result, you will get the desired result.

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement