dragula

Drag and drop so simple it hurts

Fork me on GitHub
Move me, but you can only drop me in one of the desired containers.
If you try to move me somewhere else I'll just come back here! Serious.
Item 3.
Item 6.
You can drop me in the left container, otherwise I'll stay here.
Item 4.
Item 5.
      
dragula([left, right]);
      
    
Move me, but you can only drop me in one of the desired containers.
If you try to move me somewhere else I'll just come back here! Serious.
Item 3.
Item 6.
You can drop me in the left container, otherwise I'll stay here.
Item 4.
Item 5.
      
dragula([left, right]).on('drag', function (el) {
  el.className = el.className.replace(' animazing', '');
}).on('drop', function (el) {
  setTimeout(function () {
    el.className += ' animazing';
  }, 0);
});
      
    
Move me, but you can only drop me in one of the desired containers.
If you try to move me somewhere else I'll just come back here! Serious.
You can drop me in the left container, otherwise I'll stay here.
      
dragula([left, right], { copy: true });
      
    

Get it on GitHub! bevacqua/dragula