HTML5 Drag & Swap - A Simple Drag & Replace jQuery/Zepto Plugin
Join the DZone community and get the full member experience.
Join For Freehtml5 drag & swap is a simple lightweight zepto plugin which allows you to implement a drag and replace interface for elements.
a drag and replace interface allows you to easily swap around elements in a list with each element replacing each other.
the html5 drag & swap plugin is built using the native html5 drag and drop api with drop animations using css3. it supports both list elements and grid ones.
browser support
ie 7+, firefox 16+, chrome 23+, safari 5.1+ and, opera 12.1+.
requirements:
jquery or zepto
demo:
http:/ / james2doyle. github. com/ zepto-dragswap/
license:
mit license
Published at DZone with permission of Hirvesh Munogee, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments