On my site I want to be able to create a div when I click my mouse, the div should be created next to where the mouse clicked. I then want to be able to animate this div to fly off the bottom of the screen.
So far I have this jQuery code that simply shows a div on click, however I want it to animate down and off screen each time it is displayed. Can anybody help me out here.
$("#divId").hide();
$(".holder").click( function(event) {
$("#divId").show().css( {position:"absolute", top:event.pageY, left: event.pageX})
});
and a JSfiddle: http://jsfiddle.net/VZY6C/