Closed locksy closed 2 years ago
I want to control the playback of a gif, where the frame corresponds to the percentage of the base page that is loaded. In essence, a loading screen. Is this possible?
Yes, you can do something like this:
gif.currentFrame = Math.round(percentage * (gif.totalFrames - 1));
Documentation has more information about properties: https://pixijs.io/gif/docs/PIXI.gif.AnimatedGIF.html
I want to control the playback of a gif, where the frame corresponds to the percentage of the base page that is loaded. In essence, a loading screen. Is this possible?