I recently needed a minimal simple library for handling drag and drop behaviours of dynamic HTML elements, and while I like interactjs.io‘s library for resize/drag/drop at 85kb (js), I decided I wanted something smaller. Mozilla’s MDN example code did the job mostly, so I uncoupled, restructured, parameterised some options and committed as mozDraggables under the MIT license.
In the end, the mozDraggables library weights in at 2.8kb (js) and 461 bytes (css).

See the Readme.MD and demos for defaults, options and further details on the Github repo.
Published by Pete Scully PhD (UK)
Find my work on Research, Technology & Science... Past highlights include @PyCon, Data Science @Lexr.AI, Agri-Tech @MSU-TH, 3D Reconstruction Light Stages for Plants (Phenotypic/Genomic Mappings) @AU @NPPC-UK, Cybernetics, Social Science + Behavioural Research + Grant Writing @MU-TH, Model Explainability, IoT Apps for Zombies, Self-Healing AI + Cyber Security @Airbus, COVID-19 Thailand's Provincial Public Data Analysis, PlayfulCoding.EU, Training SW Engineers @MorganStanley, Commercial Projects + Start-ups.
To discuss or work together, I'm on email: pmdscully-at-gmail-com.
View all posts by Pete Scully PhD (UK)