Comensamos por el CSS, lo agregamos en donde tengamos los estilos de nuestra web, en blogger buscamos ]]></b:skin> y arriba pegamos lo siguiente:
.banners-pl {
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #CCCCCC;
box-shadow: 0 14px 2px -10px #CCCCCC;
margin-bottom: 30px;
padding: 8px;
position: relative;
width: 652px;
z-index: 15;
}
.corte-img {
cursor: pointer;
height: 167px;
overflow: hidden;
position: relative;
}
.corte-img > img {
-moz-transition: all 500ms;
-webkit-transition: all 500ms;
-o-transition: all 500ms;
transition: all 500ms;
position: absolute;
z-index: 50;
opacity: 1;
left: 0;
}
.banners-pl:hover .corte-img > img {
opacity: 0;
margin-top: -167px;
}
.conten-pl-home {
position: absolute;
top: 0;
z-index: 10;
}
.conten-pl-home a {
border-radius: 4px 4px 4px 4px;
box-shadow: 0 0 2px 0 #333333 inset;
display: block;
float: left;
margin: 13px;
padding: 6px;
position: relative;
text-decoration: none;
width: 125px;
height: 125px;
-moz-transition: all 300ms ease-in-out;
-webkit-transition: all 300ms ease-in-out;
-o-transition: all 300ms ease-in-out;
transition: all 300ms ease-in-out;
}
.conten-pl-home a:hover {
background: #07aaee;
}
.banners-pl .conten-pl-home a strong {
background-color: rgba(0, 0, 0, 0.7);
border-radius: 2px 2px 2px 2px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
color: #FFFFFF;
font-weight: normal;
right: -20px;
padding: 3px 6px;
position: absolute;
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.75);
top: 0;
z-index: 9999;
}
.banners-pl .conten-pl-home a strong {
opacity:0;
-webkit-transition-property: opacity, top;
-webkit-transition-duration: 500ms;
-moz-transition-property: opacity, top;
-moz-transition-duration: 500ms;
-o-transition-property: opacity, top;
-o-transition-duration: 500ms;
transition-property: opacity, top;
transition-duration: 500ms;
}
.conten-pl-home a:hover strong {
opacity:1;
top: 120px;
}
y para terminar, la extructura html, la ubican en donde deseen usar el contenedor:
<div class="banners-pl">
<div style="position:relative">
<div class="corte-img">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy04-S8j-MbYoZ3FNWxqlwXXzj9TtdwcRRT9QDlmlEycN37Bx7-9q2t1UFYWHw2nnwrXtpUNUwJTPJdIwStS4Gy7FiiS4i1HRxjDa0vi9P43jpEXXhhLxJFg9qUTFWZiXwKY4P8EnhWxhq/s1600/652x167.jpg" />
</div>
<div class="conten-pl-home">
<a target="_blank" href="#">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHY21JJb2iP6u9NadoN7NQXZ-VgxQNP6jKcTz3snBtw4EZVQsPfutqc11d1omFqUuO-kKj9tzZ8fq_HPWJLrdeIWK_Xrf1f9CuKsBDTy6QkDE2ZhLEQHS0P0NRjPZ09RKHI7Uv0NaZ1wSZ/s1600/125x125.jpg" width="125px" height="125px" border="0"/>
<strong>Nombre imagen</strong>
</a>
<a target="_blank" href="#">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHY21JJb2iP6u9NadoN7NQXZ-VgxQNP6jKcTz3snBtw4EZVQsPfutqc11d1omFqUuO-kKj9tzZ8fq_HPWJLrdeIWK_Xrf1f9CuKsBDTy6QkDE2ZhLEQHS0P0NRjPZ09RKHI7Uv0NaZ1wSZ/s1600/125x125.jpg" width="125px" height="125px" border="0"/>
<strong>Nombre imagen</strong>
</a>
<a target="_blank" href="#">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHY21JJb2iP6u9NadoN7NQXZ-VgxQNP6jKcTz3snBtw4EZVQsPfutqc11d1omFqUuO-kKj9tzZ8fq_HPWJLrdeIWK_Xrf1f9CuKsBDTy6QkDE2ZhLEQHS0P0NRjPZ09RKHI7Uv0NaZ1wSZ/s1600/125x125.jpg" width="125px" height="125px" border="0"/>
<strong>Nombre imagen</strong>
</a>
<a target="_blank" href="#">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHY21JJb2iP6u9NadoN7NQXZ-VgxQNP6jKcTz3snBtw4EZVQsPfutqc11d1omFqUuO-kKj9tzZ8fq_HPWJLrdeIWK_Xrf1f9CuKsBDTy6QkDE2ZhLEQHS0P0NRjPZ09RKHI7Uv0NaZ1wSZ/s1600/125x125.jpg" width="125px" height="125px" border="0"/>
<strong>Nombre imagen</strong>
</a>
</div>
</div></div>
reemplazan las respectivas imagenes por las suyas, lo mismo va con los ateriscos y el nombre para cada banner y ya para terminar si lo an echo bien les quedara asi:
No hay comentarios:
Publicar un comentario