Workshop › Traffic light › Step 8 of 12
An animation is a timeline: what a property is at each moment. @keyframes glow says: be bright for the first 30%
of the time, dim for the rest.
```css
@keyframes glow {
0%, 30% {
opacity: 1;
}
35%, 100% {
opacity: 0.25;
}
}
```Write the @keyframes block at the end of the styles, under the green lamp's rule.
Skills: Styling with CSS
← Turn them off Play the timeline →