Jump to content
GreenSock

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

Elements overlap when using position: absolute or fixed for staggerTo.

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

Hey guys,

 

I am totally new to GSAP (I just started using it last night), not to mention a junior developer in general.

 

I want to animate some elements on a page to move accross the page and fade out, all with the same class.

 

The part I am confused about though, is that in order for the elements to move they must be given a position property of absolute or fixed. (At least that's what the greensock tutorial said I had to do). When I apply this position property to the elements with the class I want to animate, they all stack on top of each other in the same place. 

 

How do I keep the elements from starting and ending at the same place in the window with this css property applied?

See the Pen beEXQM by anon (@anon) 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.

×