I'm making parralax/scrolling site with edge.
I'm trying to trigger a tweenmax animation at 1 sec mark of my animation. I'm calculating scrollPos with the page height to give me a percentage and then use sym.stop(time) to scroll through the timeline
Here's the script I'm using
|var animationHeight = 4832;|
var stageHeight = sym.$("Stage").height();
var scrollPos = sym.$("Stage").scrollTop();
// var duration = 7000;
var duration = sym.getDuration();
var percent = scrollPos / (animationHeight - stageHeight);
var time = duration * percent;
This script works but my problem is that triggers that I set up throughout the timeline are not going off. What gives? Thanks in advance.
Stop at a particular postion is somewhat a jump instruction.Where the timeline just jumps to said time and does not execute the triggers in between.
Even the timeline element change in between is also not rendered on stage.