Jump to content
GreenSock

DraggablePlugin

.zIndex

.zIndex : Number

[static] The starting zIndex that gets applied by default when an element is pressed/touched (for positional types, like "x,y", "top,left", etc.

Details

Number - The starting zIndex that gets applied by default when an element is pressed/touched (for positional types, like "x,y", "top,left", etc. but not "rotation" or "scroll") and this number gets incremented and applied to each new element that gets pressed/touched so that the stacking order looks correct (newly pressed objects rise to the top) unless zIndexBoost: false is set in a particular Draggable’s vars parameter. You can set this zIndex to whatever you want, but 1000 is the default.

  1. Draggable.zIndex = 500;
Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.
×