Add CSS transition effect for both the width and height property

To add transition effect for width and height property of an element, you can try to run the following code

Example


   
      
   
   
      

Heading One

     

Hover over the below box to change its width and height.

     
   
Updated on: 2026-03-11T22:50:41+05:30

638 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements