Mensaje de navidad al estilo de Google

Si pones en Google "Feliz navidad" en Google veras como la parte superior de la pestaña esta adornada por un hermoso efecto navideño, si ya te has dado cuenta de este espectacular y lo quieres reproducir en tu blog pues estas de suerte ya que gracias a Oloman podremos reproducir este genial truco.


El efecto es el siguiente:




Aquí se muestra el mismo efecto pero con pequeño letrero: 
Feliz Navidad les desea Mil Trucos Blogger
Para agregar el primer efecto en tu blog basta con ir a la parte de HTML de una entrada o pagina o en su defecto pegar en un gadget HTML/Javascript lo siguiente:
<style>
#santa {
position: relative;
top: 0;
left: 0;
display: block;
overflow: hidden;
width: 100%;
height: 60px;
margin:0;
padding: 0;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi46KfbdtxFwse2EgPgPKWTwiRItZrH1_90AmjE-DL9vb0PxCAofHyw5LHuYWgFeUbO_wvWlzBa1b9_k48yiEcFKgpdKnRUIjoiZiTyZzHxPvjkKP15YjaR4UvP3c3erWSR7thJ64YPGPCv/s1600/xmas_bg_n.gif) left bottom;
}
#santa:before {
position: absolute;
bottom: -2px;
left: -200px;
content: "";
display: inline-block;
width: 200px;
height: 26px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicsWtar50X41UETo3hw2g0BJOmfAIwYkZQOfF85AJYAgY_c1qFybEe8C7Tbslt3ywO-1fVCz8PDpjXImkypIYkyr1GvfsyOUcPbZOlNB3T9gy5iDdevzwL7bSVffTLJXVq3H9GV53rMrNF/s1600/xmas_santa_n.gif) transparent no-repeat;
-webkit-animation-delay: 4s;
-webkit-animation-duration: 20s;
-webkit-animation-name: santamove;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
animation-delay: 4s;
animation-duration: 20s;
animation-name: santamove;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
#santa:after {
position: absolute;
bottom: -2px;
left: 0;
content: "";
display: inline-block;
width: 100%;
height: 10px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxopm_HwNHHJlVLHOsiiCggGkOwHCeqW5Pi_q8uNwRePuXL2bqaGbAnx0jIFV9DwO6KuSJKsn5VlhcUj8N-y8MWm0cFKhXwGcyWFG-MQCsyRLjeBHBAHf4hPiD16sflgL9FMHbkXfKBETF/s1600/xmas_snow_n.png) transparent repeat-x;
}
@-webkit-keyframes santamove {
from {left: 0%;}
to {left: 200%;}
}
@keyframes santamove {
from {left: 0%;}
to {left: 150%;}
}
</style>
<div id='santa'></div>

Para agregar el segundo efecto, omite el anterior código y en su lugar pega el segundo:
<style>#santa {
  position: relative;
  top: 0;
  left: 0;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 60px;
  margin:0;
  padding: 0;
  background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi46KfbdtxFwse2EgPgPKWTwiRItZrH1_90AmjE-DL9vb0PxCAofHyw5LHuYWgFeUbO_wvWlzBa1b9_k48yiEcFKgpdKnRUIjoiZiTyZzHxPvjkKP15YjaR4UvP3c3erWSR7thJ64YPGPCv/s1600/xmas_bg_n.gif)  left bottom;
}
#santa:before {
  position: absolute;
  bottom: -2px;
  left: -200px;
  content: "";
  display: inline-block;
  width: 200px;
  height: 26px;
  background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicsWtar50X41UETo3hw2g0BJOmfAIwYkZQOfF85AJYAgY_c1qFybEe8C7Tbslt3ywO-1fVCz8PDpjXImkypIYkyr1GvfsyOUcPbZOlNB3T9gy5iDdevzwL7bSVffTLJXVq3H9GV53rMrNF/s1600/xmas_santa_n.gif) transparent no-repeat;
  -webkit-animation-delay: 4s;
  -webkit-animation-duration: 20s;
  -webkit-animation-name: santamove;
  -webkit-animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  animation-delay: 4s;
  animation-duration: 20s;
  animation-name: santamove;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
#santa:after {
position: absolute;
bottom: 0;
left: 0;
content: "";
display: inline-block;
width: 100%;
height: 10px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxopm_HwNHHJlVLHOsiiCggGkOwHCeqW5Pi_q8uNwRePuXL2bqaGbAnx0jIFV9DwO6KuSJKsn5VlhcUj8N-y8MWm0cFKhXwGcyWFG-MQCsyRLjeBHBAHf4hPiD16sflgL9FMHbkXfKBETF/s1600/xmas_snow_n.png) transparent repeat-x;
}
@-webkit-keyframes santamove {
  from {left: 0%;}
  to {left: 200%;}
}
@keyframes santamove {
  from {left: 0%;}
  to {left: 150%;}
}
#cabecera {
  position: relative;
  margin: 40px 0;
  color: white;
  font: 30px impact;
  line-height: 34px;
  text-align:center;
  text-shadow:  0 0 8px blue;
}
#cabecera:after {
  content:"Aquí va el texto mostrado en el cuadro";
  display: block;
  color: blue;
  opacity: .1;
  -webkit-transform: scaleY(-1);
  transform: scaleY(-1);
}</style><br />
<div style="-moz-box-shadow: 1px 1px 3px #999; -webkit-box-shadow: 1px 1px 3px #999; background: white; background: white; border: 4px solid #eee; box-shadow: 1px 1px 3px #999; margin: 30px auto; max-width: 94%; padding-bottom: 20px; width: 1000px;"><div id="santa"></div><div id="cabecera">Aquí va el texto mostrado en el cuadro</div></div>

Para poner tu propio texto solo debes eliminar la parte resaltada en color azul y poner el texto que tu quieras.

Este efecto esta hecho con CSS por lo que es relativamente sencillo de crear.

Espero que te haya gustado este truco y por favor compártelo en tus redes sociales.
Comparte este artículo:
+
Pagina Anterior
« Entradas mas Recientes
Pagina Siguiente
Siguiente Publicación »

Publicaciónes Relacionadas

0 Komentar untuk "Mensaje de navidad al estilo de Google"

Terima Kasih Sudah Berkomentar
 
Back To Top