Question

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

Was it helpful?

Solution

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

OTHER TIPS

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

Like:

<BODY onload="myfunction()">
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top