Jump to content

Search In
  • More options...
Find results that contain...
Find results in...
Stefano Monteiro

Add parallax effect on sections

Recommended Posts

Not sure that is the best way to describe what I am trying to achieve, basically I want to have the sections behaving as parallax when scrolling. So, it should have a nice and smooth feel. 


I thought of using the scrollTrigger onUpdate to retrieve the progress and direction. However, not sure how to implement them on the yPercent

See the Pen LYywveN by stefanomonteiro (@stefanomonteiro) on CodePen

Link to comment
Share on other sites

Hey Stefano

There's some good parallax demos in this thread -

I hope one of them will set you in the right direction!


Link to comment
Share on other sites

Another demo that might be useful: 

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


And here's the concept applied to your demo: 

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


You can easily alter the data-speed attribute values to make individual things faster or slower. 


Is that what you're looking for? 

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