Solution
div { height: 40px; width: 70%; background: black; margin: 50px auto; border-radius: 5px; } #rect { animation-name: rainbow; animation-duration:4s; } @keyframes rainbow { 0%{ background-color: blue; } 50%{ background-color: green; } 100%{ background-color: yellow; } }
517surya
4
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How does @keyframes uses the animation-name: rainbow; from the anim tag? | 3 | 1427 | March 9, 2021 | |
| Learn How the CSS @keyframes and animation Properties Work | 6 | 3972 | March 9, 2021 | |
| Learn how the CSS@keyframes and animation properties work? | 7 | 800 | May 31, 2021 | |
| Stuck on: Applied Visual Design: Learn How the CSS @keyframes and animation Properties Work | 2 | 482 | May 31, 2021 | |
| CSS @keyframes and animation Properties | 3 | 327 | May 31, 2021 |