JS DOM - 04.03 - Drag & Drop

Drag and drop The basic Drag’n’Drop algorithm looks like this:

  1. On mousedown – prepare the element for moving, if needed (maybe create a clone of it, add a class to it or whatever).
  2. Then on mousemove move it by changing left/top with position:absolute.
  3. On mouseup – perform all actions related to finishing the drag’n’drop.

Making a slider Slider