Question: What will happen when the following code is applied? div { height: 2 0 0 px; background - color: yellow; } div:hover { height: 4

What will happen when the following code is applied?
div {
height: 200px;
background-color: yellow;
}
div:hover {
height: 400px;
transition: height 2s ease;
}
What will happen when the following code is applied?
div {
height: 200px;
background-color: yellow;
}
div:hover {
height: 400px;
transition: height 2s ease;
}
The height of the div will transition smoothly from 200px to 400px over 2 seconds when hovered.
The height of the div will remain 200px.
The height of the div will change instantly to 400px when hovered.
The background color will change when hovered.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!