horizontal buttons Card #495
Replies: 7 comments 9 replies
-
Hi, do you have a more specific example? I'm not sure to understand what you want to achieve. |
Beta Was this translation helpful? Give feedback.
-
I want to animate the icon of the horizontal buttons card depending on the status. E.g. room 1 is occupied and the symbol is moving:
|
Beta Was this translation helpful? Give feedback.
-
It only works with an animation, but only because it is present in the source code. So he doesn't use the keyframe. Example:
|
Beta Was this translation helpful? Give feedback.
-
Example icon: lv_0_20240207155458.mp4 |
Beta Was this translation helpful? Give feedback.
-
Is there a way to do that? |
Beta Was this translation helpful? Give feedback.
-
I guess but I'm not sure, I will have to try that but it's not my priority right now because I have a lot of other issues 😅 But if you progress on that please tell me how you did it. |
Beta Was this translation helpful? Give feedback.
-
I know this is an old-ish post. I couldn't get the icon animation working through the custom styles section of Bubble Card but you can do it with card_mod. This is how I animated a gentle rotation for a fan switch:
This how it would look like in the full card:
You can setup whatever animation takes your fancy. For example I have a custom alarm clock I created with a load of helpers and an automation. When the alarm is snoozed, the alarm on/off switch icon shakes and rotates back and forth like a cartoon alarm clock moving. @Clooos might be worth adding to the docs unless you plan on supporting the animation style? |
Beta Was this translation helpful? Give feedback.
-
How can I animate the icon with state?
Thx
Beta Was this translation helpful? Give feedback.
All reactions