<p>example</p>
p{ width:150px; height:50px; color:#fff; background-color:#ccc; text-align:center; line-height:50px; margin:20px ; -webkit-transition: all 1s ease 0s ; -moz-transition: all 1s ease 0s ; -o-transition: all 1s ease 0s ; } p:hover{ width: 250px; height:20px; line-height:20px; }