Created
June 5, 2012 19:19
-
-
Save oloman/2877116 to your computer and use it in GitHub Desktop.
Visor CSS con miniaturas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Visor CSS con miniaturas */ | |
.contenedorvisor { | |
position: relative; | |
width: 800px; | |
height: 700px; | |
margin: 0 auto; | |
text-align:center; | |
overflow: hidden; | |
} | |
.contenedorvisor a { | |
display: inline; | |
text-decoration: none; | |
} | |
.contenedorvisor a span { | |
position: absolute; | |
top: 800px; | |
left: 5%; | |
color: black; | |
padding: 5px; | |
background: rgba(255,255,255,.3); | |
} | |
.miniatura { | |
width: 17%; /* 100/nº total imágenes */ | |
margin:1px; | |
border: 3px solid black; | |
opacity: 1; | |
} | |
.grande { | |
width:100%; | |
position: absolute; | |
top: 800px; /* Valor mayor que alto contenedor */ | |
margin:0 auto; | |
text-align: center; | |
display: block; | |
-webkit-transition: top 1s ease; | |
-moz-transition: top 1s ease; | |
-o-transition: top 1s ease; | |
-ms-transition: top 1s ease; | |
transition: top 1s ease; | |
} | |
.muestra { | |
opacity: .3; | |
width: 200%; | |
top: 170px; | |
} | |
a:hover .miniatura { | |
border: 3px solid grey; | |
opacity: .5; | |
} | |
a:hover .grande { | |
top: 170px; /* Valor que hará visible la imagen grande */ | |
-webkit-transition: top 1s ease; | |
-moz-transition: top 1s ease; | |
-o-transition: top 1s ease; | |
-ms-transition: top 1s ease; | |
transition: top 1s ease; | |
z-index: 3; | |
} | |
a:hover span { | |
top: 190px; | |
z-index: 3; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML --> | |
<div class="contenedorvisor"> | |
<a href="javascript:void(0);"> | |
<img class="miniatura" src="https://lh4.googleusercontent.com/-I269JIOw-j8/T39fWn86O9I/AAAAAAAACjM/w53k4Y5ww9c/s800-c/Overlooking%2520Rio.jpg" /> | |
<img class="grande" src="https://lh4.googleusercontent.com/-I269JIOw-j8/T39fWn86O9I/AAAAAAAACjM/w53k4Y5ww9c/s800/Overlooking%2520Rio.jpg" /> | |
<span>Río de Janeiro</span> | |
</a> | |
<a href="javascript:void(0);"> | |
<img class="miniatura" src="https://lh4.googleusercontent.com/-S6TQEihJFVo/T39fWOhcUqI/AAAAAAAACjI/fopDbZ0Kqz4/s800-c/Freestyle.jpg" /> | |
<img class="grande" src="https://lh4.googleusercontent.com/-S6TQEihJFVo/T39fWOhcUqI/AAAAAAAACjI/fopDbZ0Kqz4/s800/Freestyle.jpg" /> | |
<span>Salto al vacío</span> | |
</a> | |
<a href="javascript:void(0);"> | |
<img class="miniatura" src="https://lh4.googleusercontent.com/-9nHMYUNoKKs/T39fVEYMEdI/AAAAAAAACiw/X6gtnDtBrmY/s800-c/Fish.jpg" /> | |
<img class="grande" src="https://lh4.googleusercontent.com/-9nHMYUNoKKs/T39fVEYMEdI/AAAAAAAACiw/X6gtnDtBrmY/s800/Fish.jpg" /> | |
<span>La vida en el arrecife</span> | |
</a> | |
<a href="javascript:void(0);"> | |
<img class="miniatura" src="https://lh4.googleusercontent.com/-eN5LU1SvLY4/T39fVMhcPHI/AAAAAAAACi4/Hjm_4N7YZqw/s800-c/At%2520the%2520Arch.jpg" /> | |
<img class="grande" src="https://lh4.googleusercontent.com/-eN5LU1SvLY4/T39fVMhcPHI/AAAAAAAACi4/Hjm_4N7YZqw/s800/At%2520the%2520Arch.jpg" /> | |
<span>La ventana del diablo</span></a> | |
<a href="javascript:void(0);"> | |
<img class="miniatura" src="https://lh3.googleusercontent.com/-mV2jjLU128A/T39fUmw9o0I/AAAAAAAACi0/GxZUCn7DCzs/s800-c/Big%2520Wave.jpg" /> | |
<img class="grande" src="https://lh3.googleusercontent.com/-mV2jjLU128A/T39fUmw9o0I/AAAAAAAACi0/GxZUCn7DCzs/s800/Big%2520Wave.jpg" /> | |
<span>The big one</span></a> | |
<a href="javascript:void(0);"> | |
<img class="grande muestra" src="https://lh4.googleusercontent.com/-I269JIOw-j8/T39fWn86O9I/AAAAAAAACjM/w53k4Y5ww9c/s800/Overlooking%2520Rio.jpg" /> | |
</a> | |
</div> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"separate","fontsize":"90","seethrough":"","prefixfree":"1","page":"result"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment