is something like this possible?
<div id="box1" onload="$("#box1").addClass("fadeIn");"></div>
The script does not seem to run when the document loads. I know that declaring a function beforehand and then using it on load works like below. Are you able to write javascript/jQuery instead of a function like I have tried above?
<div id="box1" onload="myFunction();"></div>