S
S
SolinAndrey2018-05-03 20:11:23
JavaScript
SolinAndrey, 2018-05-03 20:11:23

When the page is reloaded, the fps of the animation changes, what could be the reason?

There are two pages, for example index and about. The about page has the following animation: https://codesandbox.io/s/kwz622xvx7
The essence of the problem is this: on the local version , if you return from the about page to index and then back to about, the fps of the animation is reduced each time.
When I went to the about page - 5aeb3e072484f169643841.png
Then I switched to index - 5aeb3e13ca6d3106200396.png
Then I returned to about - 5aeb3e1d4c041878436774.png
I can not understand why this is happening. Vue project

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2018-06-19
@profesor08

I suppose you are initializing the same animations many times. It is necessary to stop them before moving to another page. After all, your window is not updated.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question