Answer the question
In order to leave comments, you need to log in
Through what to do animation: css or jquery?
For example, you can do :hover in css and .hover() in jquery - where is it more correct to do animation in css or jquery from the side of extension and further code maintenance?
Answer the question
In order to leave comments, you need to log in
Through css, because jquery does the same as you - defines the css style.
Let css be responsible for graphics (which is its task), and jquery for behavior. It is more intuitive and understandable to look at the style, and not to rummage through the jquery code to understand where, what and how you have defined.
<figure>
<img src = "ch1.jpg"/>
<figcaption>
<h1>hello</h1>
<p>world!</p>
</figcaption>
</figure>
<figure>
<img src = "ch1.jpg"/>
</figure>
<figure>
<img src = "ch1.jpg"/>
</figure>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question