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