V
V
vetsmen2018-01-31 12:11:48
css
vetsmen, 2018-01-31 12:11:48

How to make animation smooth?

Good day. There are about 30 objects, you need to organize the animation of movement vertically.
Now I'm doing it through css3 like this:

.animate { top: 0px; animation: anline 12s; transition-timing-function:  ease-out; }
@keyframes anline {
    0% { top: 0px; }
    100% { top: -3978px; }
}

The whole problem is that animations sometimes slow down for most users, not everyone has smoothness throughout the entire animation. As I understand it, these are the costs of the animation itself on css.
How to achieve full smoothness on all devices? They say you need to look towards canvas, will it be better at this task? And if so, is it difficult to make a similar animation on it? Never worked with him before.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GreatRash, 2018-01-31
@vetsmen

Instead of changing the property top, you need to change the property translate. In this case, the video card will be involved in the animation and it will be much smoother.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question