Dashboard 2.0 icon animation

thanks for all the great help so far. Is there a way to animate an icon (button icon) in dashboard 2? I was searching but couldn't find any useful information.
Using ui_update to send the material design icon and to change it.

That details that you can use ui_update.icon to modify the icon

I'm using msg.ui_update.icon to show the icon. But I was not able to get it animated e.g. rotating. checked the doc but could not find any information.
I'm just providing the icon name with msg.ui_update.icon

Send mdi-spin mdi-cog in msg.ui_update.icon

docs: UI Template Examples | Node-RED Dashboard 2.0

Screen recording 2024-11-25 23.17.46

2 Likes

Thanks @Steve-Mcl for pointing out!

@Steve-Mcl , thank you for the explanation. This works for a single button. Is there a similar solution for a button group?
If not for the icon, then perhaps for the color that was specified in the button group configuration.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.