Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
The animation property in CSS can be used to animate many other CSS properties such as color, background-color, height, or width. Each animation needs to be defined with the @keyframes at-rule which is then called with the animation. .element { animation: pulse 5s infinite; } @keyframes pulse { 0% { background-color: #001F3F; } 100% { background-color: #FF4136; } } the webkit prefix is for specific browsers: Chrome, Safari, Android, iOs you have some prefix: -webkit -moz (firefox) -o (opera) -ms (ie)
17th Mar 2017, 6:44 AM
Victor GS
Victor GS - avatar