What i want to do is to open a window in the middle of an animation coming from the index. I will have ten seek() position on the timeline . I only need the first animation to be done.
The index js is:
$(window).load(function() {
$info = $("#info");
$info.click(function(){
sessionStorage.setItem("abeille","1");
document.location.href = "demo1.html"
});
});
I put a button to simulate the sessionStorage.setItem("abeille","1") done on the index.
demo1.html=Codepen
if you use that button and push the Fork button you got:
Uncaught Cannot add undefined into the timeline; it is not a tween, timeline, function, or string.d.add @ TweenMax.min.js:14master @ pen.js:119(anonymous function) @ pen.js:126n.event.dispatch @ jquery.js:4430r.handle @ jquery.js:4116
I also try do duplicate the master and add it start on the "if" condition like this:
function monster(){
if(sesSto1==1){
master1();
}
else{master();}
}
monster();
Thank you for the help and exuse me for my bad english hope you can help me.