I have an element called #text, which fades outs on an event.
$('#text').animate({ opacity : 0 }, 2500);
On the same event I also want it to position the element at the mouse co-ords.
I’ve read up and not sure what I’m supposed to use, offset(), position() etc.
Any help?
Are you looking for something like this? I grabbed the mouse coordinates at the time of the click and set the target element’s
topandleftproperties accordingly. Note that my fiddle should be updated to take into consideration the wrapper’s own offset