Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/12/2012, 16:46
phyronx
 
Fecha de Ingreso: mayo-2009
Mensajes: 232
Antigüedad: 15 años, 8 meses
Puntos: 3
Respuesta: Input con translacion

Encontre otro codigo:

Código CSS:
Ver original
  1. <style>
  2.  
  3. .kk, textarea {  
  4.     width: 280px;  
  5.     -webkit-transition: width 1s ease;  
  6.     -moz-transition: width 1s ease;  
  7.     -o-transition: width 1s ease;  
  8.     -ms-transition: width 1s ease;  
  9.     transition: width 1s ease;  
  10. }  
  11.  
  12. .kk:focus, textarea:focus {  
  13.     width: 340px;  
  14. }
  15.  
  16.    
  17.      
  18. </style>

Esta vez para hacerlo sin javascript.

Código HTML:
Ver original
  1. <input class="kk" name="buscar"  type="text">

Pero igual, no me hace l;a translacion.