Über CSS Icons blinken lassen

Begonnen von wkarl, 29 November 2014, 13:09:10

Vorheriges Thema - Nächstes Thema

wkarl

Hallo,

ich möchte bestimmte Status-Icons in meinen floorplans blinken lassen, wenn sie einen kritischen Status erreichen. Folgendes habe ich im Internet gefunden und auf meine Bedürfnisse angepasst:
svg.icon.measure_battery_25 {
    display:block;
    -webkit-animation-name: color-pulse;
    -webkit-animation-duration: 1s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    -webkit-animation-direction: alternate;
    animation-name: color-pulse;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-direction: alternate;
}
@-webkit-keyframes color-pulse {
  0% { fill:red; }
  100% { opacity:0; }
}
@keyframes color-pulse {
  0% { fill:red; }
  100% { opacity:0; }
}

ciao walter
FHEM 5.7 & TabletUI 2.2 auf Fedora22 Server auf NUC5i5RYK
CUL 868 > FAST EnergyCam
HMLAN > HomeMatic TCs & VDs, Bewegungsmelder, Schalter, Taster, Steckdosen

prime1009

FHEM 5.7 auf RasPi3
Homematic, IT, FS20, Cams (SSCAM), CUL, HueBridge, HarmonyHub, LIGHTIFY, TelegramBot, Homebridge (Siri), DBLog mit MySQL, Text2Speech, ...

wkarl

Babe mich wohl missverständlich ausgedrückt - ja, funktioniert wunderbar.
Ciao walter
FHEM 5.7 & TabletUI 2.2 auf Fedora22 Server auf NUC5i5RYK
CUL 868 > FAST EnergyCam
HMLAN > HomeMatic TCs & VDs, Bewegungsmelder, Schalter, Taster, Steckdosen

RainerH

Vielen Dank, funktioniert super.
Habe es für den Müllsack verwendet:

.bag {
    display:block;
    -webkit-animation-name: color-pulse;
    -webkit-animation-duration: 1s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    -webkit-animation-direction: alternate;
    animation-name: color-pulse;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-direction: alternate;
    }

@-webkit-keyframes color-pulse {
    0%   { opacity:0; }
    100% { opacity:1; }
    }

Burny4600

Wo genau wird die Ergänzung eingefügt um ein bestimmtes Icon blinken zu lassen?
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT