You can easily make use of jquerys animate function.
$(".holder").click( function(event) {
$("#divId").show().css( {position:"absolute", top:event.pageY, left: event.pageX}).stop().animate({
top: 800
}, 1000);
});
In this example you animate the top property from what it is, to 800, within 1 second.
And then if you want it to dissapear hwen it leaves the box you just put position: relative; and overflow: hidden;
fiddle: http://jsfiddle.net/CL3Lu/
Edit:
Just added the stop() function to the chain. This stops the currently running animation.
New fiddle: http://jsfiddle.net/Bq3Dc/
You can see the difference if you make multiple clicks fast.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…