Jump to content
Search Community

Demo 5: GSAP and ScrollMagic Pinning without scrollMagic

Novaliz test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

I would like to recreate this example written with scrollMagic and GSAP.

 

See the Pen xopaBa by PointC (@PointC) on CodePen

 

However, in my example panel A does not stay fixed so that panel b can slide over it from right to left, but it scrolls with it. also the scrolling from panel c to the last content is faulty. how can i fix my error?

See the Pen KKrRjEB by deutschritter (@deutschritter) on CodePen

Link to comment
Share on other sites

  • Solution

Hi,

 

The issue is that you are pinning the same elements that you are animating, that is one of the most common errors in ScrollTrigger.

 

You should pin the parent element not the panels and create a single timeline to animate all the elements in the sequence you want.

 

Here is a fork of your example:

See the Pen gOQKdzv by GreenSock (@GreenSock) on CodePen

 

Hopefully this helps.

Happy Tweening!

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...