Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/04/2014, 12:43
Avatar de ceaped
ceaped
 
Fecha de Ingreso: febrero-2004
Mensajes: 2.185
Antigüedad: 20 años, 2 meses
Puntos: 9
Respuesta: Varias animaciones con .CSS

Hola pzin

Mira como tengo ya el .css:

Código CSS:
Ver original
  1. #dialogo_1{
  2.     width: 200px;
  3.     height: 180px;
  4.     background-image: url(../images/dialogo_1.png);
  5.     background-repeat: no-repeat;
  6.     position: absolute;
  7.     margin-left: 540px;
  8.     margin-top: 50px;
  9.     -webkit-animation: dialogo_1 4s;
  10.     animation: dialogo_1 4s;
  11.     }
  12.    
  13. #boton_avanzar{
  14.     width: 170px;
  15.     height: 172px;
  16.     background-image: url(../images/boton_avanzar.png);
  17.     background-repeat: no-repeat;  
  18.     -webkit-animation: boton_avanzar 4s;
  19.     animation: boton_avanzar 4s;
  20.     -webkit-animation-delay: 1s;
  21.     }
  22.  
  23. @-webkit-keyframes dialogo_1{      
  24.     from {
  25.     width: 0px;
  26.     height: 0px;
  27.     background-image: url(../images/dialogo_1.png);
  28.     background-repeat:no-repeat;
  29.     margin-top: 50px;
  30.     margin-left : 540px;
  31.     opacity: 0;
  32.     }
  33.    
  34.     to {
  35.     background-image: url(../images/dialogo_1.png);
  36.     background-repeat:no-repeat;
  37.     margin-top: 50px;
  38.     margin-left: 540px;
  39.     opacity: 1;
  40.     }
  41.    
  42. }
  43.  
  44. @-webkit-keyframes boton_avanzar{
  45.     from { 
  46.     margin-top: -750px;
  47.     margin-left: 300px;
  48.     opacity: 0;
  49.     }
  50.    
  51.     to {   
  52.     margin-top: -350px;
  53.     margin-left: 300px;
  54.     opacity: 1;
  55.     }
  56.    
  57. }

En la animación de "boton_avanzar" se anima pero cuando llega a la posición x,y se desaparece y yo deseo que se quede en la posición:

margin-top: -350px;
margin-left: 300px;

Gracias por tu ayuda
__________________
Diseñador Gráfico publicitario