Jump to content


Issues with scrolling within a container using ScrollMagic and GSAP

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

I am new to GSAP and ScrollMagic. I created a website on which people can scroll pictures within a container. Here is the link: http://lahmiro.github.io/camera-2/index.html I used ScrollMagic and GSAP to create a curtain effect, but it didn't work properly on big screens (e.g. iMac, ps, it worked fine on my MacBook). The pictures are kinda off the edges while scrolling down (see the screenshot). In my js file, I used a for loop to calculate the offset for each picture and set tweens and pins. I think there might be some problems of pinning elements in this way, but I don't know how to solve it... I'd appreciate if anyone could give me some suggestions. Thank you first!! 


Link to comment
Share on other sites

This sounds more like a ScrollMagic question. Have you tried asking the ScrollMagic author or opened a ticket on that github repo? I'd love to help, but we just don't have the resources to troubleshoot things like this - we try to keep these forums focused on GSAP-specific things. Jan (the author of ScrollMagic) is a super cool guy and very smart and responsive. https://github.com/janpaepke/ScrollMagic/issues

  • Like 1
Link to comment
Share on other sites

I will try to post questions on the link you provided. Thank you!

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.