Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS3 transition-delay Property</title> <style> div { width: 100px; height: 100px; background: #56cb50; border: 3px solid #277423; /* For Safari 3.0+ */ -webkit-transition-property: width; -webkit-transition-duration: 4s; -webkit-transition-delay: 2s; /* Standard syntax */ transition-property: width; transition-duration: 4s; transition-delay: 2s; } div:hover { width: 400px; } </style> </head> <body> <div></div> <p><strong>Note:</strong> Place mouse pointer over the div box.</p> </body> </html>