Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/08/2015, 10:37
Avatar de AngelKrak
AngelKrak
 
Fecha de Ingreso: noviembre-2014
Mensajes: 917
Antigüedad: 9 años, 5 meses
Puntos: 91
Respuesta: Duda como animar la transicion en navegacion estatica por id´s

para eso se usa CSS o JS el que quieras se llaman Transitions lo que buscas, ahi te dejo un ejemplo ;)

HTML:
Código HTML:
Ver original
  1. <!DOCTYPE html>
  2. div {
  3.     width: 100px;
  4.     height: 100px;
  5.     background: red;
  6.     -webkit-transition: width 2s, height 2s, -webkit-transform 2s; /* Safari */
  7.     transition: width 2s, height 2s, transform 2s;
  8. }
  9.  
  10. div:hover {
  11.     width: 300px;
  12.     height: 300px;
  13.     -webkit-transform: rotate(180deg); /* Safari */
  14.     transform: rotate(180deg);
  15. }
  16. </head>
  17.  
  18. <p><b>Note:</b> This example does not work in Internet Explorer 9 and earlier versions.</p>
  19.  
  20. <div></div>
  21.  
  22. <p>Hover over the div element above, to see the transition effect.</p>
  23.  
  24. </body>
  25. </html>

Demo:
http://www.w3schools.com/css/tryit.a...tion_transform


Mas información:
http://www.w3schools.com/css/css3_transitions.asp
https://developer.mozilla.org/es/doc...iciones_de_CSS