I have a few frames on animation (PNGs). I change the href to animate through the frames with setInterval().
It works fine except for the first time each image is loaded and it takes a fraction of a second to show, so the first time through the sequence it flickers to the background colour. Once it has shown the image once it will appear instantly the next time, and the animation appears smooth.
Is there a way to pre-load images?
Answered! Go to the Best Answer.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
You could use multiple <image> tags, and just show/hide them. The next firmware has some performance improvements too, so it may not be an issue then.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Yes, there have been a few updates since then.
Take a look at the Sprite Image component https://dev.fitbit.com/build/guides/user-interface/svg-components/other/#sprite-image
Best Answer