A
A
Albert Kazan2017-05-03 17:48:06
JavaScript
Albert Kazan, 2017-05-03 17:48:06

How to calculate span for animation?

Through setInterval I'm doing an "animation", which should create 30 objects per second.
Smoothness - 24 frames.
What is the correct function to calculate?
p = 1 / 24 / 30 right?
or maybe 1/(24/30)?
Visually it is difficult to calculate)) Maybe someone did this for themselves

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question