How to add a delay animation in js?

Hello. How to add animation-delay in the js code ?

$(".name-redirect").animated("fadeIn");
July 12th 19 at 16:52
1 answer
July 12th 19 at 16:54
Solution
What is animated? Standard feature - .animate().
What is animation-delay?
setTimeout(function () { $(".name-redirect").animated("fadeIn"); }, 4200);

Here is what you trying to do?
that's what I wanted to do, use animate.css there was written what to write animated - luther.Schroeder64 commented on July 12th 19 at 16:57
In the documentation animate.css says that you need the element to add the class animated. It is unclear what does function... - parker commented on July 12th 19 at 17:00
: not working correctly, what you wrote starts to work immediately after loading the page, not only when comes to the need of element with animation. How to solve it? - luther.Schroeder64 commented on July 12th 19 at 17:03
you can simply not understand how to write css for a function to that class? - luther.Schroeder64 commented on July 12th 19 at 17:06
To write the correct code. The example I gave does exactly what you need. What you put in the wrong place, this is beyond the scope of this question.
Make example in jsfiddle with everything you need, ask a new question for a new problem. - parker commented on July 12th 19 at 17:09
: why Yes, I just need to here$(".name-redirect").animated("fadeIn"); for the class .name-redirect to add css - luther.Schroeder64 commented on July 12th 19 at 17:12
Sorry, I'm not willing to spend my time. You do not know the basics and can't explain what you want to do. Try to squeeze out the information you need to solve your problem, I'm not interested. - parker commented on July 12th 19 at 17:15
Nothing "offensive" in my answer is no, I talk politely and correctly. What I don't want to expend energy to decipher your stream of consciousness says more about you than about me. - parker commented on July 12th 19 at 17:18
: I'm trying to explain that I need to add css property to the class .name-redirect in your js code, and what you wrote can be used as a solution, but it's just a delay that does not pay attention to scrolling - luther.Schroeder64 commented on July 12th 19 at 17:21
lmgtfy.com/?q=jquery+add+css+rule - parker commented on July 12th 19 at 17:24
And I'm trying to explain that what you write is stream of consciousness, and not part of the dialogue between the two programmers. - parker commented on July 12th 19 at 17:27
: thank you. Your link helped - luther.Schroeder64 commented on July 12th 19 at 17:30

Find more questions by tags JavaScript