Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> div { width: 100px; height: 100px; background: #666; -webkit-transition-duration: 1s; transition-duration: 1s; -webkit-transition-property: height; -moz-transition-property: height; -o-transition-property: height; transition-property: height; } div:hover { height: 200px; } </style> </head> <body> <h2>Transition-property property example</h2> <p>Hover over the element to see the effect.</p> <div></div> </body> </html>