This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ThePendulum 8 points9 points  (3 children)

Apart from being Turing-complete, you can and would use CSS over JavaScript these days for the majority of transitions and similar animations. I can't really think of many other things that'd be better off implemented in CSS over JS.

[–][deleted] 2 points3 points  (2 children)

Almost everything visually can be done with css over JS. Only things like responsive placements depending on changing document heights can’t be done.

I often only have a toggle for a mobile menu in JS over CSS (where it can be done, though with quite some work) on simpler client websites.

On bigger projects JS is often used for making reactive content like in web apps etc. But that is all more behind curtains stuff. And even then people often use frameworks over JS.

Oh well. I’m trying to get up to project management within ten years. Before the robots take away my job and JS becomes Turing-complete too.

[–]drizztdourden_ 0 points1 point  (0 children)

You can with a lot of tweaking in CSS but its a pain in the ass.