Jump to content
Search Community

animating text in scrollmagic pins with greensock

andrewchar test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I'll start with what I want to achieve -> https://www.apple.com/iphone-xr/

 

On this page, in certain sections, you notice that the background will stay in place as you scroll and text will start coming up from the bottom. I am trying to recreate this with scrollmagic and greensock (unsure if these are the best tools for the job either, first time i try something like this)

 

So What i thought I should be doing and have tried is having my text inside a div positioned at the bottom of the screen with `transform: translateY(100vh) and as i scroll, make greensock go from text being on the bottom to scrolling to the top but have not been successful.

 

I'm very unsure about the part where I create the scene with greensock using setTween.

See the Pen PXarPz by andrewchar (@andrewchar) on CodePen

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