Jump to content
GreenSock

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

Any tutorial to learn making an animation like hpmagicwords.com.br?

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

Quote

 

Guys, I've been using Petr videos on YouTube to learn more about GreenSock but I don't get it how they've done the 50% image / 50% text section on this site: https://www.hpmagicwords.com.br/. It seems like the position is fixed but I simply don't get it how it is done.

 

Any ideia that can help me get started??

 

 

So this is the thing I was talking about, the image comes downwards while the text comes upwards until they reach the bottom/top of the page:

 

1.PNG

2.PNG

Share this post


Link to post
Share on other sites

Hello @noeyeat and Welcome to the GreenSock Forum!

 

I made this codepen for you so you can see that part isolated on how to do the 50% half and half.

 

It uses a mix of transforms translate() and absolute positioning with position offsets.

 

See the Pen vZXRPo by jonathan (@jonathan) on CodePen

 

That type of thing is just basic position of elements. You can check out MDN to learn about CSS positioning and position offsets. And background CSS properties.

 

CSS positioning and position offsets:

https://developer.mozilla.org/en-US/docs/Web/CSS/position

https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning

 

CSS background

https://developer.mozilla.org/en-US/docs/Web/CSS/background

 

Happy Tweening :)

 

  • Like 3

Share this post


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

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. 


  • Recently Browsing   0 members

    No registered users viewing this page.

×