Jump to content


How can I control how draggable items are layered.

Go to solution Solved by lake,

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

My draggable items are always being "layered" in the order which they are created in the DOM.

This make sense. However, I cant seem to be able control the layering by setting the z-index or setting the zIndexBoost property to true. 

The codepen demonstrates my problem. 

I appreciate any help.




See the Pen bdPyXj?editors=101 by leyk (@leyk) on CodePen

Link to comment
Share on other sites

  • Solution

Never mind. I figured it out...  My wrapper element did not have the css 'position' property set. that needs to be set for z-index to work. 

  • Like 1
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.