Jump to content
Search Community

ScrollTrigger - Text Scroll One Side / Pin Image Right Side

antenna_richard test
Moderator Tag

Recommended Posts

Hello,

 

I'm having issues with getting this to work. I am trying to have a 50/50 section with content on left side and image on right side. I need the image to be pinned, while the text sections on the left to scroll and fade in/out.

 

I've attached a photo for reference of what I'm looking for. Thanks!

Screenshot 2023-01-09 at 11.51.54 AM.png

Link to comment
Share on other sites

Welcome to the forums, @antenna_richard.

 

I'd recommend poking through these demos to see if you can find a good starting point: 

https://greensock.com/st-demos/

 

And then just fork it and start trying to build what you want. If you get stuck, feel free to post back here with a minimal demo and a GSAP-specific question and we'd be happy to help. 

 

Here are a couple of demos that might be helpful: 

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

 

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

 

Happy tweening!

Link to comment
Share on other sites

Thanks for the reply

 

See the Pen ExpWPwV by AntennaRichard (@AntennaRichard) on CodePen

See the Pen GRBWoQQ by AntennaRichard (@AntennaRichard) on CodePen

 

I tried both approaches and didn't have much luck. I am able to interact with the content in the first demo but unable to have it function how I'm intending. Basically trying to get what was done in the second demo provided except instead of the boxes scrolling, its the text. 

 

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