jueves, 17 de noviembre de 2011

Imagenes ampliadas con JQuery



Los efectos con JQuery me encantan, y para muestra un boton (una imagen en este caso, jeje). En Blogger hace poco que nos han habilitado la opcion del "lightbox" en las imagenes, esto es algo parecido pero aun me gusta mas. Cuando pasamos el raton por la imagen, el cursor se convierte en una lupa y al hacer click sobre ella se amplia rapidamente con un efecto suave my molon. Al volver a dar click sobre ella, vuelve a su tamaño original.

Aqui teneis un ejemplo con unas cuantas imagenes:

  



Para poner este efecto tan chulo en vuestro blog o web, añadis el siguiente codigo en vuestra plantilla antes de </head>:


<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript">
</script>
<script src="http://hostredeando.ucoz.es/SCRIPTS-BLOG/jquery.magnifier.js" type="text/javascript">
/***********************************************
* Imagen amplada con jQuery
REDEANDO - tu blog webmaster
http://redeando.blogspot.com/
***********************************************/
</script>





Una vez hecho esto, ya solo nos queda añadir el siguiente codigo cada vez que querais poner una imagen con este efecto. Cambiais lo que esta en rojo por la url de la imagen y el tamaño y listo.


<img class="magnify" src="URL DE LA IMAGEN" style="height: 200px; width: 200px;" />






domingo, 13 de noviembre de 2011

Plantilla "Fotoblog_01" para Blogger



Desde el blog  Blogsmadeinspain , nos llega esta nueva plantilla para Blogger diseñada por A. Zambrana. Como su nombre indica, esta orientada a los que quieren realizar un blog dedicado a la fotografia, aunque se puede aplicar a otros generos. El diseño es muy elegante, con 3 columnas de colores arriba y abajo para los gadgets, posts alineados de tres en tres (que al entrar te muestran la entrada a pagina completa) y paginacion incluida. Una muy buena opcion para instalarla en tu blog.



viernes, 11 de noviembre de 2011

Ponte NASA TV en tu web



La compañia aeronautica espacial americana nos brinda dos opciones para ver sus emisiones. Por un lado tenemos su canal en YouTube , en el que podemos insertar sus videos de determinada duracion. Y luego, que es mas interesante, su canal de TV online que emite a traves de USTREAM. En el podremos ver las ultimas noticias, reportajes y videos e imagenes de lo mas impactante. Para amantes de la ciencia y tecnologia espacio-sideral.







Ponlo en tu web o blog:



miércoles, 9 de noviembre de 2011

Imagenes con efecto baraja


Otra maravilla que se puede hacer con los estilos CSS es esta presentacion de imagenes, que al pasar el cursor se expanden como una baraja. Si os gusta y quereis implementarlo en vuestra web, la cosa es muy sencilla.

Lo primero de todo es añadir el codigo CSS, que lo pondremos entre las etiquetas <body> de nuestra plantilla.



<style>
/* the A tag */
.album {
  position: relative;
  z-index: 5;
  width: 250px;
  vertical-align: top;
  display:block;
}

/* the images */
.album img {
  position: absolute;
  top: 0;
  left: 0;
  border: 5px solid #f3f3f3;
  box-shadow: 1px 1px 2px #666;
  -webkit-box-shadow: 1px 1px 2px #666;
  -moz-box-shadow: 1px 1px 2px #666;
  width:250px;
  height:250px;
  display:block;
}
/* first image:  webkit */
@-webkit-keyframes image1 {
  0%   { -webkit-transform: rotate(0deg) translate(0, 0) scale(1.0); }
  100% { -webkit-transform: rotate(-6deg) translate(-100px, -3px) scale(1.1); }
}

/* first image:  firefox */
@-moz-keyframes image1 {
  0%   { -moz-transform: rotate(0deg) translate(0, 0) scale(1.0); }
  100% { -moz-transform: rotate(-6deg) translate(-100px, -3px) scale(1.1); }
}

/* first image:  opera */
@-o-keyframes image1 {
  0%   { -o-transform: rotate(0deg) translate(0, 0) scale(1.0); }
  100% { -o-transform: rotate(-6deg) translate(-100px, -3px) scale(1.1); }
}

/* second image:  webkit */
@-webkit-keyframes image2 {
  0%   { -webkit-transform: rotate(0deg) translate(0, 0) scale(1.0); }
  100% { -webkit-transform: rotate(0deg) translate(0, -3px) scale(1.1); }
}
/* second image:  firefox */
@-moz-keyframes image2 {
  0%   { -moz-transform: rotate(0deg) translate(0, 0) scale(1.0); }
  100% { -moz-transform: rotate(0deg) translate(0, -3px) scale(1.1); }
}
/* second image:  opera */
@-o-keyframes image2 {
  0%   { -o-transform: rotate(0deg) translate(0, 0) scale(1.0); }
  100% { -o-transform: rotate(0deg) translate(0, -3px) scale(1.1); }
}

/* third image:  webkit */
@-webkit-keyframes image3 {
  0%   { -webkit-transform: rotate(0deg) translate(0, 0) scale(1.0); }
  100% { -webkit-transform: rotate(6deg) translate(100px, -3px) scale(1.1); }
}

/* third image:  firefox */
@-moz-keyframes image3 {
  0%   { -moz-transform: rotate(0deg) translate(0, 0) scale(1.0); }
  100% { -moz-transform: rotate(6deg) translate(100px, -3px) scale(1.1); }
}

/* third image:  opera */
@-o-keyframes image3 {
  0%   { -o-transform: rotate(0deg) translate(0, 0) scale(1.0); }
  100% { -o-transform: rotate(6deg) translate(100px, -3px) scale(1.1); }
}
/* first image animation properties */
.album:hover .photo1, .album:focus .photo1 {

  /* webkit animation properties */
  -webkit-animation-name: image1;
  -webkit-animation-duration: .2s;
  -webkit-transform: rotate(-6deg) translate(-100px, -3px) scale(1.1);
 
  /* firefox animation properties */
  -moz-animation-name: image1;
  -moz-animation-duration: .2s;
  -moz-transform: rotate(-6deg) translate(-100px, -3px) scale(1.1);
 
  /* opera animation properties */
  -o-animation-name: image1;
  -o-animation-duration: .2s;
  -o-transform: rotate(-6deg) translate(-100px, -3px) scale(1.1);
 
  /* microsoft animation properties */
  -ms-transform: rotate(-6deg) translate(-100px, -3px) scale(1.1);
}

/* second image animation properties */
.album:hover .photo2, .album:focus .photo2 {

  /* webkit animation properties */
  -webkit-animation-name: image2;
  -webkit-animation-duration: .2s;
  -webkit-transform: rotate(0deg) translate(0, -3px) scale(1.1);
 
  /* firefox animation properties */
  -moz-animation-name: image2;
  -moz-animation-duration: .2s;
  -moz-transform: rotate(0deg) translate(0, -3px) scale(1.1);
 
  /* opera animation properties */
  -o-animation-name: image2;
  -o-animation-duration: .2s;
  -o-transform: rotate(-6deg) translate(-100px, -3px) scale(1.1);
 
  /* microsoft animation properties */
  -ms-transform: rotate(0deg) translate(0, -3px) scale(1.1);
}

/* third image animation properties */
.album:hover .photo3, .album:focus .photo3 {

  /* webkit animation properties */
  -webkit-animation-name: image3;
  -webkit-animation-duration: .2s;
  -webkit-transform: rotate(6deg) translate(100px, -3px) scale(1.1);
 
  /* firefox animation properties */
  -moz-animation-name: image3;
  -moz-animation-duration: .2s;
  -moz-transform: rotate(6deg) translate(100px, -3px) scale(1.1);
 
  /* opera animation properties */
  -o-animation-name: image3;
  -o-animation-duration: .2s;
  -o-transform: rotate(-6deg) translate(-100px, -3px) scale(1.1);
 
  /* microsoft animation properties */
  -ms-transform: rotate(6deg) translate(100px, -3px) scale(1.1);
}
</style>








Una vez hecho esto, ya solo nos queda poner el codigo HTML para mostrar las imagenes cada vez que queramos. Sustituimos donde pone IMAGEN por las urls de las imagenes que queramos añadir.


<center><a class="album" href="ENLACE">
<img class="photo1" src="IMAGEN" />
<img class="photo2" src="IMAGEN" />
<img class="photo3" src="IMAGEN" />
</a></center>





Y aqui teneis el maravilloso resultado que obtendreis. Pasad el raton por encima y vereis el efecto:





















lunes, 7 de noviembre de 2011

Rayos girando con CSS


Vamos a ver un codigo CSS que nos puede servir para hacer un logo, una presentacion o, simplemente un enlace. El codigo lo que hace es poner 2 imagenes, una 'delante' que sera la que nosotros queramos y nos servira de enlace, y otra 'detras' que es la que en este caso girara. Yo he puesto una transparente png de rayos tipo comic, que ya la teneis incluida en el codigo y que es esta:

Y aqui teneis el codigo, en el que podeis modificar el tamaño, ubicacion y url de la imagen que querais poner. Todo lo que tengais que añadir o modificar os lo he puesto en rojo.

<div id="raysDemoHolder">
  <a href="URL ENLACE" id="raysLogo"><font color="#98fb98"><span style="font-size: 12pt;"><u><span style="font-family: Arial Black; font-size: 12pt;">LETRAS AQUI</span></u><br></span></font></a>
  <div id="rays"></div>
</div>
<style>/* keyframes for animation;  simple 0 to 360 */
@-webkit-keyframes spin {
  from { -webkit-transform: rotate(0deg); }
  to { -webkit-transform: rotate(360deg); }
}

@-moz-keyframes spin {
  from { -moz-transform: rotate(0deg); }
  to { -moz-transform: rotate(360deg); }
}

@-ms-keyframes spin {
  from { -ms-transform: rotate(0deg); }
  to { -ms-transform: rotate(360deg); }
}

/* basic structure for the rays setup */
#raysDemoHolder  {
  position: relative;
  width: 490px;
  height: 490px;
  margin: 100px 0 0 200px;
}
#raysLogo {
  width: 250px;
  height: 250px;
  text-indent: -3000px;
  background: url(URL DE TU LOGO O IMAGEN) 0 0 no-repeat;
  display: block;
  position: absolute;
  top: 120px;
  left: 40px;
  z-index: 2;
}
#rays  { /* with animation properties */
  background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikjherFxi7elkkc2qjRKsFbLgysff5N7sH9hhdMxofz0j6c-CQmeA3VYrqtdIS9n-jRSjerFhKe3gmdt8gMo3vF_NQvG5aCv8Fk-xZoFAuesPJTDigLonNQOF73k-EcXAodD2CFHG43Uj6/s1600/rays-main.png) 0 0 no-repeat;
  position: absolute;
  top: -100px;
  left: -100px;
  width: 490px;
  height: 490px;
 
  /* webkit chrome, safari, mobile */
  -webkit-animation-name: spin;
  -webkit-animation-duration: 40000ms; /* 40 seconds */
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
 
  /* mozilla ff */
  -moz-animation-name: spin;
  -moz-animation-duration: 40000ms; /* 40 seconds */
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
 
  /* microsoft ie */
  -ms-animation-name: spin;
  -ms-animation-duration: 40000ms; /* 40 seconds */
  -ms-animation-iteration-count: infinite;
  -ms-animation-timing-function: linear;
}

#rays:hover {
  /* -webkit-animation-duration: 10000ms; 10 seconds - speed it up on hover! */
  /* resets the position though!  sucks */
}</style>




Para que veais un ejemplo de como queda, aqui teneis uno con el logo de mi blog:




domingo, 6 de noviembre de 2011

Comparte el contenido de tu blog con Web.Informer


Web.Informer, Permite añadir un botón o una barra social en tu blog para que tus visitantes puedan añadir el contenido de tus blogs a todos los marcadores sociales como Digg, Yahoo, Delicius, Google, Mixx, Twitter, Segnalo, Tumblr, Facebook, LinkedIn, StumbleUpon, y otras redes sociales del momento. Para conseguir el boton de marcadores o la barra social que se coloca en la parte inferior de tu blog, no debes llenar ningun formulario de registro, solamente escoger el tipo de botón que deseas y luego copiar y pegar el codigo en la plantilla de tu blog. Ademas soporta varios idiomas tales como: Inglés, Español, Ruso, Francés, Alemán, etc.






martes, 1 de noviembre de 2011

Crear una galeria de imagenes tipo Polaroid



¿Os gustaria hacer una presentacion con imagenes diferente en vuestra web? Pues esta galeria hecha solo con CSS os va a encantar. Las imagenes se muestran como desordenadas, con efectos de superposicion al pasar el cursor y con la forma de las fotos Polaroid. Ademas, a cada imagen podemos ponerle un enlace y pueden hacer a la vez de menu. Aqui esta como os quedara una vez añadida, y mas abajo la explicacion de como hacerla.











































Para implementar la galeria en nuestra web, primero ponemos los estilos CSS en el <body> de nuestra plantilla.
<style>
ul.gallery {
    list-style: none outside none;
}
ul.gallery li a {
    background: none repeat scroll 0 0 #EEEEEE;
    border: 1px solid #FFFFFF;
    box-shadow: 0 2px 15px #333333;
    float: left;
    padding: 10px 10px 25px;
    position: relative;
}
ul.gallery li a.pic-1 {
    -moz-transform: rotate(-10deg);
    z-index: 1;
}
ul.gallery li a.pic-2 {
    -moz-transform: rotate(-3deg);
    z-index: 5;
}
ul.gallery li a.pic-3 {
    -moz-transform: rotate(4deg);
    z-index: 3;
}
ul.gallery li a.pic-4 {
    -moz-transform: rotate(14deg);
    z-index: 4;
}
ul.gallery li a.pic-5 {
    -moz-transform: rotate(-12deg);
    z-index: 2;
}
ul.gallery li a.pic-6 {
    -moz-transform: rotate(5deg);
    z-index: 6;
}
ul.gallery li a:hover {
    box-shadow: 3px 5px 15px #333333;
    z-index: 10;
}
</style>




Ahora, solo queda añadir el codigo HTML alli donde queramos mostrar la galeria. Cambiamos lo que esta en rojo para añadir las urls de las imagenes y los enlaces. Para cambiar el tamaño modificais donde pone height="150" y width="250".

<ul class="gallery">
<li><a class="pic-1" href="ENLACE"><img height="150" src="URL IMAGEN" width="250" /></a></li>
<li><a class="pic-2" href="
ENLACE"><img height="150" src="URL IMAGEN" width="250" /></a></li>
<li><a class="pic-3" href="
ENLACE"><img height="150" src="URL IMAGEN" width="250" /></a></li>
<li><a class="pic-4" href="
ENLACE"><img height="150" src="URL IMAGEN" width="250" /></a></li>
<li><a class="pic-5" href="
ENLACE"><img height="150" src="URL IMAGEN" width="250" /></a></li>
<li><a class="pic-6" href="
ENLACE"><img height="150" src="URL IMAGEN" width="250" /></a></li>
</ul>