Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
LivingInAZoo

ScrollTrigger fade in out layered transparent images

Go to solution Solved by GreenSock,

Recommended Posts

I'm trying to create a crossfade effect using absolute positioned images.

 

I have everything working how I would like except "First" should already be visible at the start of the animation.

 

Can someone please take a look at my codepen and let me know what it is I'm missing?

 

Thanks in advance!

See the Pen Pomwwar by nancylittle419 (@nancylittle419) on CodePen

Link to comment
Share on other sites

I don't quite understand your question. Do you want "First" to START at opacity: 1? Do you want the element to be pinned during the animation? Do you want the animation to just start when the top of the element hits the center of the screen and finish by the time the bottom hits the center? I'd love to help, but I just don't understand what you're looking for. 

Link to comment
Share on other sites

Hi @greensock!

 

Thank you for your reply!

 

1. Yes, I would like "First" to START at opacity: 1.

2. No, I do not want the element pinned.

3. Yes, I do want the animation to start when the element hits the center of the screen and finish by the time the bottom hits the center.

 

I'm happy with everything in my codepen example as it is. The only issue I am having difficulty with is #1 having "First" start at opacity: 1.

 

Thanks for your help!

Link to comment
Share on other sites

Hi @GreenSock,

 

Yes, exactly like that!!!

 

Thank you so much for the help!

Link to comment
Share on other sites

No problem. 

 

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