Ü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?
LG Chris

Raspberry Pi 2-5, Bullseye Lite, Bookworm Lite
Schnittstellen: 1-Wire, FHEM2FEHEM, HM-MOD-UART, LAN, Modbus, MQTT, nanoCUL, RFXtrx433E, SIGNALduino, ser2net
Devices: APC, Eastron, FS20, IT, Homematic, MQTT, PV-(DEYE, EPEVER, FRONIUS), Resol-VBUS, S.USV, TEK603, WMR200, YouLess