totalFrame() returns one frame less than should.
It returns the id of the last frame (equal to "op" Out Point), not the total amout of frames.
Comparing to https://lottiefiles.com/tools/json-editor resources are always one frame shorter and different in progress (the same distance in pixels is one frame less, so there is always a small difference in the rendered view).
totalFrame() returns one frame less than should. It returns the id of the last frame (equal to "op" Out Point), not the total amout of frames. Comparing to https://lottiefiles.com/tools/json-editor resources are always one frame shorter and different in progress (the same distance in pixels is one frame less, so there is always a small difference in the rendered view).