+ 1

Code for simple css animation

<!DOCTYPE html> <html> <head> <style> #andiv { width: 100px; height: 100px; animation: animation_name 1s infinite; } @-webkit-keyframes animation_name { from { background-color: green; } to { background-color: yellow; } } @keyframes animation_name { from { background-color: green; } to { background-color: yellow; } } </style> </head> <body> <div id="andiv"></div> </body> </html>

17th Aug 2017, 1:28 PM
Hermen
Hermen - avatar
5 Respostas
+ 10
css
17th Aug 2018, 6:35 PM
Abdiwali Mukhtar Mohamed
Abdiwali Mukhtar Mohamed - avatar
+ 5
nice animation :) use the webplayground to display your codes that will be better. keep on learning keep on coding. good luck ^_^
17th Aug 2017, 2:04 PM
Lord Krishna
Lord Krishna - avatar
+ 2
@Nikk He didn't include his statement to get feedback... By seeing the title and description it seems to be irrelevant... If he did include that please give feedback on this code then I will surely Appreciate him but with current state of Post it's hard to understand what he wants to say to us !
17th Aug 2017, 2:09 PM
Ekansh
+ 1
So, what ? ~_~
17th Aug 2017, 1:52 PM
Ekansh