<div class="examp1"></div>
div.examp1 { width: 50px; height: 50px; background: #32CD32; transition: width 3s; } div.examp1:hover { width: 100%; }

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.