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

parallax code not working in CC 2014.1

$
0
0

Hi!,

I have being using this code for  parallax in CC 2014,  as an action on the stage on a scroll event.

  1. // scrolling controls animation 
  2. var animationHeight = 25000 
  3. var stageHeight = sym.$("Stage").height() 
  4. var scrollPos = sym.$("Stage").scrollTop(); 
  5. var duration = sym.getDuration(); 
  6. var percent = scrollPos / (animationHeight - stageHeight); 
  7. var time = duration * percent; 
  8. // Update timeline 
  9. sym.stop(time); 


After upgrading to CC 2014.1, the code no longer works, any ideas about what needs to be changed? Tried to downgrade to 2014, but the version is no longer available.


Help? 

 

Thanks,






Viewing all articles
Browse latest Browse all 9897

Trending Articles



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