Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Multiple animations for objects

ANSWERED

I was hoping to be able to animate multiple objects on the screen, based on a click anywhere on the screen.

I have an invisible button covering the whole screen at the moment to detect clicks.

When it happens, I have it currently invert the visibility (style.display) of 8 objects. This is instant, so I'd like to be able to slowly fade the objects out on touch, then a second touch anywhere would fade them all back in again, but looking at the documentation from the link below it appears each object can only have one animation and it has to be hard-coded in index.gui:

 

https://dev.fitbit.com/guides/user-interface/animations/

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

We will have better control over this in the near future, but you can setup the individual animations, then trigger them from JavaScript. https://dev.fitbit.com/guides/user-interface/javascript/#triggering-animations

View best answer in original post

Best Answer
1 REPLY 1

We will have better control over this in the near future, but you can setup the individual animations, then trigger them from JavaScript. https://dev.fitbit.com/guides/user-interface/javascript/#triggering-animations

Best Answer