A
A
Alexander2018-08-22 09:43:05
css
Alexander, 2018-08-22 09:43:05

Is there any way to fix the rendering speed of the image?

There is an animation (something like a slider) in which the images change each other sharply flying in from the side. That is, ideally, when changing the image, a new one should appear and be rendered in the first frame of the animation, and in the next frames it should quickly fly towards the target. But in fact, the image appears on the 4th-5th frame, that is, already halfway to the goal. It doesn't look like much, you know. It doesn't always work. Most of the time everything is fine. Images size 200x460px. There are quite a few different images. The order is arbitrary, that is, it is impossible to say exactly which image will be next and place it in the DOM in advance. Putting all the images at once in the DOM will undesirably affect the performance of the entire page. Is there anything that can be done about it?
Separately, I would like to note that this is not about loading images, since I preload all the images and at the time of the animation they are all already loaded.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-08-22
Madzhugin @Suntechnic

Arbitrarily put an image in the DOM in advance, and then take not an arbitrary image, but the last one put in the DOM.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question