Sublime Text
<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style type="text/css"> #test{ background-color:green; width:100px; height:100px; position:relative; animation:move 3s infinite; } @keyframes move{ from{left:0px;} to{left:500px;} } </style> </head> <body> <div id="test"></div> </body> </html>
<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style type="text/css"> #test{ background-color:green; width:100px; height:100px; position:relative; animation:move 3s infinite; } @keyframes move{ from{left:0px;} to{left:500px;} } </style> </head> <body> <div id="test"></div> </body> </html>