I've got this keyframe
@keyframes jump {
25% {
transform: translate3d(0, 0px, 0);
}
75% {
transform: translate3d(0, 10em, 0);
}
100% {
transform: translate3d(0, 17.5em, 0);
}
}
Then I have this class
.close.form_open {
animation: jump .5s forwards linear;
-webkit-animation: jump .5s forwards linear;
}
I'm adding the class form_open with jQuery and when the class is added the animation is working properly, but when I remove the class (with jQuery), it doesn't show the animation. The element goes to the right position, but without any animation. What am I missing? My class close is empty
.close {
}
Thank you very much
UPDATE: Added fiddle Demo
.close