Open modulareverything opened 8 years ago
You can accomplish this by shuffling the elements’ source order on drag start: https://jsfiddle.net/zn7pme0y/
Or you could do it using z-index
, but it’s a bit more code: https://jsfiddle.net/zn7pme0y/1/
I'm looking to stack some elements based on when they were last clicked. So basically, whatever was last dragged will sit at the top. When another element is clicked, that will then sit on top of the last, and so on.
Here's what I have so far: