Ver Mensaje Individual
  #9 (permalink)  
Antiguo 04/01/2011, 14:11
kseso?
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 10 meses
Puntos: 539
Respuesta: Como hacer este efecto en texto?

Ese es el camino, Fsg, siga leyendo un poco más y experimentando, que así es como más se divierte uno y de paso se aprende.

Mire en chrome, ya que sólo apliqué el prefijo -webkit-
Es sólo un ejercicio lúdico, sin prestar atención a detalles:

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="es-es">
  3. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  4. <title>Kseso? Jugando con css</title>
  5. <style type="text/css">
  6. * { margin:0; padding:0; position: relative;}
  7. html, body {
  8.   width: 100%;
  9.   height:100%;
  10.   font-size: 1em;
  11.   background: #444;
  12. }
  13. .contenedor {
  14. width: 500px;
  15. margin: 0 auto;
  16. background: #fe0;
  17. z-index: 5;
  18. -webkit-box-shadow: 0 0 10px #444;
  19. }
  20. p {
  21.     font-size: 1em;
  22.     position: relative;
  23.     color: red;;
  24. }
  25. h1 {
  26.   background: #fff;
  27.   font-size: 5em;
  28.   color: #green;
  29.   text-align: center;
  30.   text-shadow: 1px 1px 0 #000, -1px -1px 0 #222;
  31.   z-index: 2;
  32.   -webkit-transform: rotate(-10deg);
  33.   -webkit-transition-duration: 3s;
  34. }
  35.  
  36. h1:hover {
  37.   color: blue;
  38.   text-shadow: 0 0 10px #000;
  39.   background: red;
  40.   margin-top: 1em;
  41.   font-size: 10em;
  42.   z-index: 10;
  43.   -webkit-transform: rotate(360deg);
  44.   -webkit-transition-duration: 10s;
  45. }
  46. </head>
  47. <div class="contenedor">
  48. <p>Lorem ipsum dolor sit amet consectetuer tellus Vestibulum ut malesuada eros. Felis mus faucibus velit Maecenas id Phasellus sem Sed Aenean Curabitur. Maecenas tellus dui ac purus ut in sed quis Nulla Donec.</p>
  49. </div>
  50. <h1>Hola Mundo</h1>
  51. </body>
  52. </html>