1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-05-08 17:28:46 +01:00

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
2 changed files with 9 additions and 3 deletions
+4 -1
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"],
@@ -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;
}
}