A
A
Artem Sinegovsky2020-04-26 19:55:34
JavaScript
Artem Sinegovsky, 2020-04-26 19:55:34

Why doesn't it work when putting jquery code into a script?

Here is the animation , when you try to put the jquery code into the script, the animation stops working. Because of what there were difficulties with entering the animation on the site. How can I fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2020-04-27
@Ermak1

Put the function code at the end of the document (but before the body closes), otherwise you are trying to work with dom elements before they are loaded.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question