Ampeln Schalten
ich habe das Ampel css-Tutorial durch gearbeitet und möchte die Ampeln durch Eingänge schalten.
Kommentar abgeben zu diesen Beitrag/Code ?Dann hier klicken
Der hier verwendete Code
<style>
#css-ampel {
display: flex;
flex-direction:column;
width: 30px;
height: 90px;
border-radius: 6px;
background: black;
zoom: 1.7;
}
#css-ampel div{
background: dimgrey;
border-radius:50%;
flex:1;
margin:3px;
justify-content:center;
}
.ampelred > #ampelred{
background: red;
box-shadow: 0 0 20px red;
}
.ampelyellow > #ampelyellow{
background: yellow;
box-shadow: 0 0 20px yellow;
}
.ampelgreen > #ampelgreen{
background: limegreen;
box-shadow: 0 0 20px limegreen;
}
.auto >#ampelred{