Skip to content

This jQuery plugin enables to modfiy the HTML5 Drag-and-Drop ghost

Notifications You must be signed in to change notification settings

visiongeist/DragGhost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

DragGhost

This jQuery plugin enables to modfiy the HTML5 Drag-and-Drop ghost by using any DOM element.

Usage

function handleDragstart(event) {
  event.attachGhost({
  	style: {
    	'background-color': 'black'
    }
  });
}


function handleDragstart(event) {
	event.attachGhost({
		elem: $('#myghost').get(0),
  	style: {
    	'background-color': 'black'
    }
  });
}



function handleDragstart(event) {
	event.attachGhost({
		elem: $('#myghost').get(0),
  	style: {
    	'background-color': 'black'
    },
		pos: {
			x: 10,
			y: 20
		}
  });
}

Tutorial

About

This jQuery plugin enables to modfiy the HTML5 Drag-and-Drop ghost

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published