cocover.js
is a jQuery plugin that make mouseover/mouseenter
work while dragging an element.
What Can I Do With This Plugin
Make elements sortable easily?
When dragging an element over another element which has attached an mouseenter/mouseover
event, the
event wont triggered. So if you want to make that work, you must calculate all the element's coordinate
while mouse move, if the elements is few, that's ok, but if the elements is huge, you have to for loop many
times in every mouse move, that's not efficient.
You must add <meta http-equiv="X-UA-Compatible" content="IE=8">
to make it work under IE8.
Chose what elements to be over while dragging an element.
cocover.over('.item');
// or $('.item').cocover('over');
Destroy this ability.
cocover.destroy('.item');
// or $('.item').cocover('destroy');
Only called this method, this plugin can work.
cocover.start();
// or $('.item').cocover('start');
Stop will make this plugin temporally not work.
cocover.stop();
// or $('.item').cocover('stop');
MIT License (http://towry.me/mit-license/)