Quick question. If I use the .load to change the content of a div, after it loads I want to have things animate on it, how can I get around "cannot tween null object" error? I know the elements don't exist yet, but I am having trouble figuring where to put the $(document).ready function.
function animate_focalTag(event){
focalTag.animate_focalTag(),
$("#content").load("focalPoints.html"),
$(document).ready(function(){
var pTab = document.getElementById('pTab');
var vTab = document.getElementById('vTab');
var aTab = document.getElementById('aTab');
TweenLite.to(pTab, 1, {left:0, delay:5});
});
}
I tried putting it at the end of the html I load, but then I get weird errors from jquery.