Draggable

.zIndex

.zIndex : Number = 1000

[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

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 thiszIndex to whatever you want, but 1000 is the default.

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.

Get GSAP

Version: 1.20.4 updated 2018-02-15

Core

    Extras

      Plugins

        By using GreenSock code, you agree to the terms of use.

        Help support GreenSock by becoming a member

        Join Club GreenSock