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; transition-duration:5s; transition-delay:2s; } div:hover{ background-color:blue; width:300px; height:300px; } </style> </head> <body> <p style="line-height:30px;font-size:18px;">- Khi các bạn dí con trỏ vào phần tử <div> nằm bên dưới, phải đợi sau 2 giây thì hiệu ứng luân chuyển giá trị của thuộc tính width mới được diễn ra.</p> <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; transition-duration:5s; transition-delay:2s; } div:hover{ background-color:blue; width:300px; height:300px; } </style> </head> <body> <p style="line-height:30px;font-size:18px;">- Khi các bạn dí con trỏ vào phần tử <div> nằm bên dưới, phải đợi sau 2 giây thì hiệu ứng luân chuyển giá trị của thuộc tính width mới được diễn ra.</p> <div></div> </body> </html>