Hi khanzain4593,
There are different css properties to apply your transition.
transition
transition-delay
transition-duration
transition-property
transition-timing-function
For creating transition effect, you need to specify the CSS property you want to add an effect and the duration of the effect.
The default value for duration is 0.
Refer below example.
HTML
<html>
<head>
<style type="text/css">
div {
width: 100px;
height: 100px;
background: purple;
transition: transform 150ms ease-in-out;
}
div:hover {
width: 200px;
height: 200px;
}
</style>
</head>
<body>
<div>ASPSnippets</div>
</body>
</html>
Demo