El siguiente ejemplo nos vuelve a mostrar las posibilidades que nos ofrecen las transiciones
de CSS3.
HTML:
<ul>
<li>Botón 1</li>
<li>Botón 2</li>
<li>Botón 3</li>
<li>Botón 4</li>
<li>Botón 5</li>
</ul>
CSS:
ul {
display: table;
width: 400px;
}
li {
display: table-cell;
width: 20%;
height: 50px;
line-height: 50px;
text-align: center;
cursor: pointer;
-webkit-transition: 0.3s ease-in-out;
-moz-transition: 0.3s ease-in-out;
}
ul:hover li {
width: 15%;
}
li:hover {
width: 40% !important;
opacity: 0.7;
}
ul li:nth-of-type(1) { background: #FF4C4C; }
ul li:nth-of-type(2) { background: #FFBF49; }
ul li:nth-of-type(3) { background: #444444; }
ul li:nth-of-type(4) { background: #6FDC6F; }
ul li:nth-of-type(5) { background: #3AADFE; }






