How hovering over a division element to gradually change the width in CSS ?
transition: transition-property transition-duration
- transition-property : t specifies the CSS properties to which a transition effect should be applied like height, width etc.
- transition-duration : It specifies the length of time a transition animation should take to complete.
Note: If any of the values are not defined then the browser assumes the default values.
Example 2: Below example is to change width, height and color on hovering