Jump to content
Search Community

GSAP & ScrollMagic and "scale" problem (video)

hedox test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hello, 
My "trigger" bar always changes position. It is difficult for me to explain the problem so I recorded the video of it.

If I scroll down really fast, it works. Seems like the trigger element is kind of blocking and creates a barrier.


Video of the problem.

 

In short, my trigger (not the trigger item) from ScrollMagic goes back to the top as soon as it hits the trigger element. 

 

My code : 
 

var tlfirst = new TimelineMax();
tlfirst
.set('.experienceInfo',{scale:3})
.set('.skillsInfo',{scale:3},"+=10")

.from('.experienceInfo',10,{autoAlpha : 0,scale:3})
.from('.skillsInfo',10,{autoAlpha : 0,scale:3},"-=10")

.to('.experienceInfo',10,{autoAlpha: 1,scale:1})
.to('.skillsInfo',10,{autoAlpha: 1,scale:1},"+=10");

var controller = new ScrollMagic.Controller();

var scene1 = new ScrollMagic.Scene({
    triggerElement : '.skillsSection',
    // triggerHook: 0 ,
    duration : "30%",

})
.setTween(tlfirst)
.addIndicators()
.addTo(controller);
Link to comment
Share on other sites

Welcome to the forums, @hedox

 

Unfortunately we don't really support ScrollMagic in these forums (it's not a GreenSock tool), although there are a few people in the community here who have used it and may be able to chime in. I'd suggest that you reach out to the author or post an issue on Github in the ScrollMagic repo. I wish I could help more. Maybe someone else can chime in who has some experience with ScrollMagic. 

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.
×
×
  • Create New...