Sublime Text
<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style type="text/css"> div{ background-color:green; width:100px; height:100px; transition-property:width,background-color; transition-duration:4s; } div:hover{ background-color:blue; width:300px; height:300px; } </style> </head> <body> <div></div> </body> </html>
<!DOCTYPE html> <html> <head> <title>Xem ví dụ</title> <style type="text/css"> div{ background-color:green; width:100px; height:100px; transition-property:width,background-color; transition-duration:4s; } div:hover{ background-color:blue; width:300px; height:300px; } </style> </head> <body> <div></div> </body> </html>