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

有帮助吗?

解决方案

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

其他提示

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

Like:

<BODY onload="myfunction()">
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top