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;
sym.stop(time)
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.