Hi everyone! I made a card with text which depends on the state of the entity, here is a code of styles (custom:button-card):
name:
- justify-self: start
- font-size: 14px
- padding-left: 0px
- font-weight: 550
- opacity: '0.7'
- color: |
[[[
var state = entity.state;
if (state == '0') return 'cyan';
if (state == '64' | state == 'unavailable') return 'yellow';
if (state == '1' | state == '2' | state == '3') return 'red';
]]]
But I want to make the red text to blink, how I am supposed to do this?