This project demonstrates how to implement a simple drag-and-drop functionality using plain JavaScript. It includes the ability to drag elements and reorder them within a container.
- Drag Events: Implements
dragstart
anddragend
to add and remove drag styles. - Reordering: Allows reordering of elements within a container using
dragover
andinsertBefore
. - Dynamic Interaction: Elements are dynamically moved as the user drags them, providing a smooth and intuitive user experience.
Clone the repository to your local machine:
git clone https://github.com/bhagirathpaliyal/DragAndDrop.git
cd DragAndDrop