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; -moz-transition-property: width; -o-transition-property: width; transition-property: width; -webkit-transition-duration: 1s; -moz-transition-duration: 1s; -o-transition-duration: 1s; transition-duration: 1s; -webkit-transition-delay: 0s; -moz-transition-delay: 0s; -o-transition-delay: 0s; transition-delay: 0s; } div:hover { width: 300px; } </style> </head> <body> <h2>Exemple de la propriété transition-delay</h2> <p>Placez la souris sur l'élément pour voir l'effet.</p> <div></div> </body> </html>