Pregunta

What code should I add jquery to create an animation that is activated when a user visits the page.

¿Fue útil?

Solución

$(document).ready(function(){
  $("#ID").animate();
});

Otros consejos

Could you not add the function into the <BODY> tag using onload?

Like:

<BODY onload="myfunction()">
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top