<div id="box"></div>
#box { transition: 1s; width: 100%; height: 250px; background-color: red; } #box:hover { width: 50px; }
This Pen is owned by Semyon on CodePen.
See more by @semzhukov on CodePen
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.