Fix alarm card animation (#6096)

fixes #5074
This commit is contained in:
Bram Kragten 2020-06-05 06:52:14 +02:00 committed by GitHub
parent 5c1553286a
commit a376f4525b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -57,9 +57,12 @@ export const iconColorCSS = css`
0% {
opacity: 1;
}
100% {
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
ha-icon[data-domain="plant"][data-state="problem"],

View File

@ -309,10 +309,13 @@ class HuiAlarmPanelCard extends LitElement implements LovelaceCard {
@keyframes pulse {
0% {
--ha-label-badge-color: var(--alarm-state-color);
opacity: 1;
}
50% {
opacity: 0;
}
100% {
--ha-label-badge-color: rgba(255, 153, 0, 0.3);
opacity: 1;
}
}