Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
jimmy-a

Fade In pinned images on scroll

Recommended Posts

Hi!

 

I'm trying to replace the "pinned" images effect when scroll (like, those images "going up"), to a "fade in" effect in the images. So, if you scroll from the page top, the next image should appear with fadeIn, and so on with the other images, until the "scroll zone" (.main-wrapper in the Codepen) ends and then comes the "normal" scroll over the other content.

 

I cannot find the way to do it, so I'll share a previous Codepen. 

 

 

See the Pen PoZJYZq by mikeK (@mikeK) on CodePen

Link to post
Share on other sites

Hey Jimmy. So essentially you want to fix all of the sections in place and transition between them. We show how to do that in one of the demos in the ScrollTrigger docs (this also loops from the beginning and end but if you take that part out it's practically the same):

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

  • Like 1
  • Thanks 1
Link to post
Share on other sites
15 hours ago, ZachSaucier said:

Hey Jimmy. So essentially you want to fix all of the sections in place and transition between them. We show how to do that in one of the demos in the ScrollTrigger docs (this also loops from the beginning and end but if you take that part out it's practically the same):

 

 

 

Hi there! That worked like a charm. Had to change a little bit the HTML & CSS, but it's working.

 

See the Pen KKVvrBY by jimmyadaro (@jimmyadaro) on CodePen

Link to post
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.

×