Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Titre du document</title> <style> div { width: 150px; height: 150px; background: #8ebf42; -webkit-transition-property: width height; -moz-transition-property: width height; -o-transition-property: width height; transition-property: width height; -webkit-transition-duration: 3s; -moz-transition-duration: 3s; -o-transition-duration: 3s; transition-duration: 3s; -webkit-transition-delay: 2s; -moz-transition-delay: 2s; -o-transition-delay: 2s; transition-delay: 2s; } div:hover { width: 300px; height: 300px; } </style> </head> <body> <h2>Exemple de la propriété transition-delay</h2> <p>Placez la souris sur l'élément et attendez 2 secondes pour voir l'effet.</p> <div></div> </body> </html>