A
A
Ainur Shakirov2018-08-22 15:50:03
css
Ainur Shakirov, 2018-08-22 15:50:03

Velocity.js vs css?

I always did animation through css ( transition or animation + keyframes)
I stumbled upon Velocity, the speed pleasantly surprised me. I did not think that js animation could compete with css.
That's the question. Aside from the convenience of writing code, just from a technical point of view, css animation is better? Or is animation on Velocity preferable? There are many articles that Velocity is very fast compared to other js frameworks, but I have not found a comparison with css.
css is fine for me, but Velocity has a lot more flexibility and control in my opinion. Now I'm thinking whether to switch to Velocity or not.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xmoonlight, 2018-08-23
@Fqyeh29

Take js if you are making complex animations and need control over the process, and CSS if you are doing simple ones. (I don’t even understand how such a question could arise ....)

#
#FFFFFF, 2018-08-22
@victory_vas

I think it depends on your tasks. If you don't have enough css - use. If enough - why pull the extra code of the library, when it's all built into css?

V
Vasily Vasilyev, 2018-08-23
@Basil_Dev

If you have doubts js or css - feel free to choose the second one. Like it or not, native css will be more stable and more productive (not without exceptions like IE6+). When you intuitively begin to "rivet your library", because native properties are constantly not enough for you - then you should look at any framework libraries. When, closing your eyes to all the variety of libraries, you can formulate what exactly you need from the code, and not because of the crow syndrome: I see a sparkle - I want a sparkle.
PS: js animation will never be able to compete with CSS, at least in terms of performance. With the help of devtools, this is very clearly demonstrated.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question