I have the following code to make a card blink. It fades in, is it possible to make it blink without fading so just on/off.
card:
type: custom:mushroom-entity-card
entity: sensor.blue_bin
icon_type: entity-picture
card_mod:
style: |
ha-card {
border: solid 3px red;
box-shadow: none;
animation:
{% if state_attr('sensor.blue_bin', 'daysTo') < 3 %}
blink 2s linear infinite;
{% else -%} none
{% endif %}
}
@keyframes blink {
from {opacity: 100;}
to {opacity: 0;}
from {opacity: 0;}
to {opacity: 100;}
}
Thanks