<div class="contenedor"> <!--ANUN1--> <div class="vista imagen_efecto"> <img src="https://lh4.googleusercontent.com/-5QAQ9YcryB8/UUx9FYF1KrI/AAAAAAAAFOw/U50B8ozIU8o/s278/ey.jpg" /> <div class="mascara"> <h2>Anunciate</h2> <p>Tenemos los mejores precios del internet</p> <a href="#" class="info">Leer mas</a> </div> </div> <!--ANUN2--> <div class="vista imagen_efecto"> <img src="https://lh4.googleusercontent.com/-5QAQ9YcryB8/UUx9FYF1KrI/AAAAAAAAFOw/U50B8ozIU8o/s278/ey.jpg" /> <div class="mascara"> <h2>Anunciate</h2> <p>Tenemos los mejores precios del internet</p> <a href="#" class="info">Leer mas</a> </div> </div> <!--ANUN3--> <div class="vista imagen_efecto"> <img src="https://lh4.googleusercontent.com/-5QAQ9YcryB8/UUx9FYF1KrI/AAAAAAAAFOw/U50B8ozIU8o/s278/ey.jpg" /> <div class="mascara"> <h2>Anunciate</h2> <p>Tenemos los mejores precios del internet</p> <a href="#" class="info">Leer mas</a> </div> </div> <!--ANUN4--> <div class="vista imagen_efecto"> <img src="https://lh4.googleusercontent.com/-5QAQ9YcryB8/UUx9FYF1KrI/AAAAAAAAFOw/U50B8ozIU8o/s278/ey.jpg" /> <div class="mascara"> <h2>Anunciate</h2> <p>Tenemos los mejores precios del internet</p> <a href="#" class="info">Leer mas</a> </div> </div> <!--fin--> </div> <!--fin-->
.contenedor { position:relative; width:680px; margin: 0 auto; } .vista { width: 278px; /*ancho*/ height: 231px; /*alto*/ margin:-5px; float: left; border: 10px solid #fff; overflow: hidden; position: relative; text-align: center; -webkit-box-shadow: 1px 1px 2px #e6e6e6; -moz-box-shadow: 1px 1px 2px #e6e6e6; box-shadow: 1px 1px 2px #e6e6e6; cursor: default; background: #fff url(images/bgimg.jpg) no-repeat center center; } .vista .mascara, .vista .content { width: 278px; height: 231px; position: absolute; overflow: hidden; top: 0; left: 0; } .vista img { display: block; position: relative; } .vista h2 { font-family:"wf_SegoeUILight", "Segoe UI Light", "Segoe WP Light", "wf_SegoeUI", "Segoe UI", "Tahoma", Arial, Verdana, sans-serif; text-transform: uppercase; color: #fff; text-align: center; position: relative; font-size: 20px; font-weight:bold; padding: 10px; background: rgba(0, 0, 0, 0.8); margin: 20px 0 0 0; } .vista p { font-family:"wf_SegoeUILight", "Segoe UI Light", "Segoe WP Light", "wf_SegoeUI", "Segoe UI", "Tahoma", Arial, Verdana, sans-serif; font-size: 16px; position: relative; color: #fff; padding: 10px 20px 20px; text-align: center; } .vista a.info { font-family:"wf_SegoeUILight", "Segoe UI Light", "Segoe WP Light", "wf_SegoeUI", "Segoe UI", "Tahoma", Arial, Verdana, sans-serif; font-weight:bold; display: inline-block; text-decoration: none; padding: 7px 14px; background-color: rgba(0, 0, 0, 0.5); background-image: -webkit-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); background-image: -moz-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); background-image: -ms-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); background-image: -o-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); background-image: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); color: #fff; text-transform: uppercase; -webkit-box-shadow: 0 0 1px #000; -moz-box-shadow: 0 0 1px #000; box-shadow: 0 0 1px #000; border-radius:6px; } .vista a.info: hover { -webkit-box-shadow: 0 0 5px #000; -moz-box-shadow: 0 0 5px #000; box-shadow: 0 0 5px #000; } .imagen_efecto img { width: 278px; /*ancho*/ height: 231px; /*alto*/ -webkit-transition: all 0.2s linear; -moz-transition: all 0.2s linear; -o-transition: all 0.2s linear; -ms-transition: all 0.2s linear; transition: all 0.2s linear; } .imagen_efecto .mascara { -ms-filter:"progid: DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); opacity: 0; background-color: rgba(26, 145, 236, 0.6); -webkit-transition: all 0.4s ease-in-out; -moz-transition: all 0.4s ease-in-out; -o-transition: all 0.4s ease-in-out; -ms-transition: all 0.4s ease-in-out; transition: all 0.4s ease-in-out; } .imagen_efecto h2 { -webkit-transform: translateY(-100px); -moz-transform: translateY(-100px); -o-transform: translateY(-100px); -ms-transform: translateY(-100px); transform: translateY(-100px); -ms-filter:"progid: DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); opacity: 0; -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; -ms-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .imagen_efecto p { -webkit-transform: translateY(100px); -moz-transform: translateY(100px); -o-transform: translateY(100px); -ms-transform: translateY(100px); transform: translateY(100px); -ms-filter:"progid: DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); opacity: 0; -webkit-transition: all 0.2s linear; -moz-transition: all 0.2s linear; -o-transition: all 0.2s linear; -ms-transition: all 0.2s linear; transition: all 0.2s linear; } .imagen_efecto:hover img { -webkit-transform: scale(1.1, 1.1); -moz-transform: scale(1.1, 1.1); -o-transform: scale(1.1, 1.1); -ms-transform: scale(1.1, 1.1); transform: scale(1.1, 1.1); } .imagen_efecto a.info { -ms-filter:"progid: DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); opacity: 0; -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; -ms-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .imagen_efecto:hover .mascara { -ms-filter:"progid: DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter: alpha(opacity=100); opacity: 1; } .imagen_efecto:hover h2, .imagen_efecto:hover p, .imagen_efecto:hover a.info { -ms-filter:"progid: DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter: alpha(opacity=100); opacity: 1; -webkit-transform: translateY(0px); -moz-transform: translateY(0px); -o-transform: translateY(0px); -ms-transform: translateY(0px); transform: translateY(0px); } .imagen_efecto:hover p { -webkit-transition-delay: 0.1s; -moz-transition-delay: 0.1s; -o-transition-delay: 0.1s; -ms-transition-delay: 0.1s; transition-delay: 0.1s; } .imagen_efecto:hover a.info { -webkit-transition-delay: 0.2s; -moz-transition-delay: 0.2s; -o-transition-delay: 0.2s; -ms-transition-delay: 0.2s; transition-delay: 0.2s; }