E
E
Edward2022-04-08 20:03:30
JavaScript
Edward, 2022-04-08 20:03:30

How to get the total number of frames of a JS animation?

Good evening. Can you please tell me if it is possible to get the total length of a javascript animation in frames or milliseconds? I need to get the currentTime of the middle of the animation in order to set the start of the animation to the middle.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artur Avetisov, 2022-05-05
@droid_001

All animations in the browser happen at 60fps.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question