Ver ❯
Herramientas SEO
Tamaño del resultado:
668 x 574
×
Cambiar Orientacion
Cambiar tema, Oscuro/Luz
<!doctype html> <html lang="es"> <head> <meta charset="utf-8"> <title>Trucos y efectos de CSS3 - Tutoriales En Linea</title> </head> <body> <style type="text/css"> html { margin: 40px; } #simple p { margin: 30px 40px; width: 80px; height: 30px; border: 1px solid #999; float: left; } #p1 { -moz-box-shadow: 5px 3px black; -webkit-box-shadow: 5px 3px black; box-shadow: 5px 3px black; } #p2 { -moz-box-shadow: 3px 3px 5px black; -webkit-box-shadow: 3px 3px 5px black; box-shadow: 3px 3px 5px black; } #p3 { -moz-box-shadow: 0 0 5px 5px black; -webkit-box-shadow: 0 0 5px 5px black; box-shadow: 0 0 5px 5px black; } .box { width: 200px; height: 200px; box-shadow: green 0 0 0 100px inset; } .pokemon { width: 200px; height: 200px; /* center content using flex box */ display: flex; justify-content: center; align-items: center; /* overlay */ box-shadow: 0 0 0 100px inset, 0 0 5px grey; /* hover out transition */ transition: box-shadow 1s; float: left; margin: 10px; } /* pokemone names */ .pokemon::after { width: 80%; height: 80%; display: block; white-space: pre; font: 15pt 'sigmar one'; color: white; border: 2px solid; text-align: center; /* center content using flex box */ display: flex; justify-content: center; align-items: center; /* hover out transition */ transition: opacity 1s .5s; } /* reveal pokemone picture on hover */ .pokemon:hover { box-shadow: 0 0 0 5px inset, 0 0 5px grey, 0 0 10px grey inset; transition: box-shadow 1s; } /* hide pokemone name on hover */ .pokemon:hover::after { opacity: 0; transition: opacity .5s; } #bulbasaur { background-image: url(https://tutorialesenlinea.descargarjuegos.org/s/posts/2019-03/1552149660_bulbasaur.webp); color: rgba(71, 121, 94, .9); } #bulbasaur::after { content: 'Bulbasaur'; } </style> <div id="bulbasaur" class="pokemon"></div> <div id="simple"> <p id="p1"> <p id="p2"> <p id="p3"> </div> </body> </html>