Follow the Mouse Cursor

http://dpaste.com/3PZP0G2 Here is the link to my code currently. So yeah I’m using canvas to get the element follow the mouse. Could you pls guide me how to get it by DOM APIs?