Computer Science, asked by novakharsha, 10 months ago

write a program on transition in html

Answers

Answered by meenakshimeena56
0

here is your answer mate

The transition-property property specifies the name of the CSS property the transition effect is for (the transition effect will start when the specified CSS property changes). Tip: A transition effect could typically occur when a user hover over an element.

please mark as brainliest answer.

Answered by yudhistiricaspa
0

Answer:

Explanation:

<html>

<head>

<style>

div {

 width: 100px;

 height: 100px;

 background: red;

 transition: width 2s;

}

div:hover {

 width: 300px;

}

</style>

</head>

<body>

<h1>The transition Property</h1>

<p>Hover over the div element below, to see the transition effect:</p>

<div></div>

<p><b>Note:</b> This example does not work in Internet Explorer 9 and earlier versions.</p>

</body>

</html>

Similar questions