What may occur is that you want to use CSS features that do not exist in all browsers currently available in the market, and in this case, you will have problems when going to a browser that does not have any particular CSS feature that you used.
When working with Javascript (with or without jQuery, but it is much easier to do with it), this problem is mitigated, since javascript is able to change the DOM dynamically, and with it even detect the resolution of the screen in Runtime and choose the best CSS settings.
However it is neither 8 nor 80. Doing everything in Javascript is not a good idea, and doing everything in CSS should not be either. It takes a certain common sense to know what goes in CSS and what goes in Javascript.
In the case of static properties of classes and ids, it is best to put them in the CSS. In Javascript, the most you can do is add or remove classes of elements from the DOM tree.
In the case of widely varying properties, such as animations of position, size, color, and object format, doing so in CSS would result in a horrible monstrosity to work with, if at all possible. Already in Javascript, you would probably put a few lines of code to fix it.
Anyway, you have to know which of the two is easier, lighter and more natural to change. Don’t put everything on one side and not everything on the other, put everything on the side where it gets better, analyzing case-by-case.
Incorrect is not, you can be sure, as there are libraries like this to give compatibility to older browsers, the problem is that maintenance is much more complicated and probably more time consuming. Use only when necessary. I’m not going to formulate an answer because it’s a little broad and the answer may sound like "opinion", but it’s like this, use "javascript to control the layout position when necessary", if it can be done with css+html, then avoid js.
– Guilherme Nascimento
http://davidwalsh.name/css-js-animation
– Oeslei
Your question is with two closing votes as "mostly based on opinions". You can improve it to avoid being closed?
– Victor Stafusa
I think so, I’ll do that.
– Andrey Hartung
@Victorstafusa Got better? I don’t have much creativity to lecture -_-
– Andrey Hartung
One of the problems of using js for animations is the large volume of gambiarras that is inserted to do something (due to the inexperience of the programmers) that would have been easily developed with css. As @Victorstafusa put it, it takes common sense to know in which situation to use each technology.
– Oeslei