Menu
×
×
Correct!
Exercise:Add a 2 second transition effect for background, and transform changes of the <div> element. Hint: Use the transition property, with 2 sets of values (separated by comma). |
Edit This Code:
x
<html> <head> <style> div { width: 100px; height: 100px; background: red; } div:hover { background: blue; transform: rotate(180deg); } </style> </head> <body> <div></div> <p>Hover over the div element above.</p> </body> <!-- Mirrored from www.w3schools.com/css/exercise.asp?filename=exercise_css3_transitions4 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:17:37 GMT --> </html> Result:
|
Correct Code:
xxxxxxxxxx Result:
|