supraniti / Lean-Mean-Drag-and-Drop

Drag&Drop Sorting and Reordering script for complex nested structures
https://supraniti.github.io/Lean-Mean-Drag-and-Drop/
MIT License
116 stars 25 forks source link

Document classes #2

Open adam-lynch opened 7 years ago

adam-lynch commented 7 years ago

It would help if the documentation outlined all the classes added to elements. I want to do some cool stuff. Also personally, I found the transitions were too long and didn't realise it was just a CSS transition :)

supraniti commented 7 years ago

I will add instructions regarding the css selectors ASAP... In the meanwhile, a short brief of the classes involved in the drag&drop process: 'hidden-layer' : this class is added to the original dom element in order to hide it while dragging occurs. 'visible-layer': this class is added to the clone of the dom element while dragging occurs 'originialID-lmddClone': the clone gets the original element id + '-lmddClone' prefix (needed in case you have id related css rules) 'lmdd-mirror': class added to the 'mirror' element while dragging 'lmdd-shadow':class added to the 'shadow' element while dragging