Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

sym.stop() does not trigger actions

$
0
0

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.


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>