-
Hello!
This handles a state as OPEN and CLOSED. Thanks! Simon |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
Hi Simon, Are we talking about two new colors, only used for the transaction, or? I'm not 100% sure what you mean with "moving", if it's not related to CSS-animations. One way could be to add a class on/off to, and use CSS for the other two colors. But I'm still not 100% sure about what you're trying to accomplish. It sounds like something totally "over done", but maybe I'm wrong! 😀 |
Beta Was this translation helpful? Give feedback.
-
Hope what above is now enough explained @exetico thanks :-) Simon |
Beta Was this translation helpful? Give feedback.
-
in this example I am chagning the speed of animation of a fan icon based on the speed of the fan. yamlhere the fan entity from home assistant returns
I have 3 classes that set based on the entity attribute but can easily changed to entity state if the state has more than 2 responses. IT also changes the colour of the fan, so yellow, orange to dark orange for speeds. css
|
Beta Was this translation helpful? Give feedback.
-
Hello @vajonam
And here the CSS:
The STATE of the item changes between open, opening, closed, closing, but now the css is not applied at all. Thanks for the help! Simon |
Beta Was this translation helpful? Give feedback.
Hi Simon,
Are we talking about two new colors, only used for the transaction, or?
I'm not 100% sure what you mean with "moving", if it's not related to CSS-animations.
One way could be to add a class on/off to, and use CSS for the other two colors. But I'm still not 100% sure about what you're trying to accomplish. It sounds like something totally "over done", but maybe I'm wrong! 😀