11-01-2017 07:45
11-01-2017 07:45
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 Answer11-01-2017 10:12
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.
11-01-2017 10:12
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 Answer11-01-2017 10:12
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.
11-01-2017 10:12
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 Answer11-01-2017 10:20
11-01-2017 10:20
Best Answer08-06-2018 20:31
08-06-2018 20:31
Is the new firmware update that does this out yet?
Best Answer08-07-2018 16:39
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.
08-07-2018 16:39
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