Jump to content
Search Community

I am new in using gsap i am trying to use this code pen in my project while also adding other section at the top and bottom of this section but i am not able to do.

Yuvraj Bokhre test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

  • Solution

Hi @Yuvraj Bokhre welcome to the forum! That demo looks cool, nice job @Cassie!

 

This demo uses the Observer plugin https://gsap.com/docs/v3/Plugins/Observer/ which kinda 'eats'  your scroll (because of preventDefault: true, on line 111. So you have to find a way to break out (and in) to this effect at the moment you want! Below a demo that does this, this is not really simple logic, but if you're up for a challenge it is certainly possible. 

 

I would advice first making some demo's, Codepen is a great place for that, so you don't have to worry about your real project or your framework trowing errors. Also I would check out this awesome getting started guide https://gsap.com/resources/get-started/ just to get a feel for the basics, you have to learn to walk before you can run, right?

 

If you still need help be sure to fork one of the demos and show us what you already have tried, that way we can see your thought process and thus better help you understand the tools!

 

Hope it helps and happy tweening! 

 

See the Pen oNQPLqJ?editors=0010 by GreenSock (@GreenSock) on CodePen

 

  • Like 3
  • Thanks 1
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...