Jump to content
Search Community

Parallax and Libs

Chriz test
Moderator Tag

Recommended Posts

Hi!

Sorry this for the (sure noob again) question but i try to folow this example to create a parallax effect of a creation i have in mind, but it just normally scrool the page, what am i missing ?

ps. i add <script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/3.2.0/gsap.min.js'></script>
  <script src='https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.7/ScrollMagic.min.js'></script>
  <script src='https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.7/ScrollMagic.js'></script>

in my index.html but it change nothing

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

Link to comment
Share on other sites

Please note that ScrollMagic is not a Greensock product, so fulfilling troubleshooting on its usage and performance is not really officially supported here on the GSAP forums.

 

However you have not provided much information, the codepen you posted is "Demo 8: GSAP and Parallax ScrollMagic" from this gracious turorial by @PointC  https://greensock.com/scrollmagic/  (hoping to assist in circumventing many of the ScrollMagic questions).

 

Did you fork that pen, if so then whats not working for you?

  • Like 3
Link to comment
Share on other sites

20 hours ago, Chriz said:

It should be possible to only use Gsap to do a similar parallax effect i think ? Its finally just a different scroll value from background or other elements ...

It's very possible! We don't recommend using ScrollMagic. This pen shows how to do an animation on scroll with just GSAP. To do a parallax effect you could just make it move in the vertical direction instead: 

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

  • Like 2
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...