JavaScript
Article
By Sam Deering

HTML5 Drag and Drop Image Demo

By Sam Deering
Help us help you! You'll get a... FREE 6-Month Subscription to SitePoint Premium Plus you'll go in the draw to WIN a new Macbook SitePoint 2017 Survey Yes, let's Do this It only takes 5 min

Just a quick HTML5 Drag and Drop demo I made in jsfiddle. https://jsfiddle.net/KxfpG/7/. If you didn’t know one of the cool features in HTML5 is the ability to Data Transfer from one object to another. There are more flashy things you can do but this demo just uses setData() and getData(). To try out the demo simply drag image 1 onto image 2.

--ADVERTISEMENT--

Login or Create Account to Comment
Login Create Account
Recommended
Sponsors
Get the most important and interesting stories in tech. Straight to your inbox, daily.Is it good?