Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

(ask) 100% screenHeight scroll when user scroll until the trigger

Recommended Posts

Sorry Im a new user of greensock .

I want to achieve a 100% screenHeight scroll whenever user scroll until the trigger :



var tween7b = TweenMax.fromTo('#red2', 1, {y: "100%"}, {y: "0%", backgroundColor:'#C74A00', ease: Linear.easeNone});

var tween7c = TweenMax.to('#red2', 1, {y: "-100%", backgroundColor:'#C74A00', ease: Linear.easeNone}); 

new ScrollMagic.Scene({triggerElement: "#trigger6e", 
triggerHook: 0.85})
new ScrollMagic.Scene({triggerElement: "#trigger6e", 
triggerHook: 0.45})
Sometimes its work, but sometimes it failed. I guess its getting confused because of two TweenMax.fromTo affected the same ID ? how could I achieve what I want then? thankyou before :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.