Looking for assistance with creating a click-and-drag solution for a background image using Vanilla Javascript. I came across a jQuery solution on Codepen, but I need help translating it into Vanilla Javascript.
Draggable.create(".box", {
bounds:$container,
edgeResistance:0.65,
type:"x,y",
throwProps:true,
autoScroll:true,
});
Check out the Codepen solution here.
The final project will be in Vue, but for now, plain HTML, CSS, and Javascript will do the trick.