oh, didnt know it neeed to
Dunno, if it's more elegant, but it's in a class:
http://www.jsfiddle.net/JCMkv/
Its more mooish, still needs work but it uses the ideas I was thinking about. You can change the time between fades in the mousemove function.
Hopefully it gives you a starting point.
From: mootool...@googlegroups.com [mailto:mootool...@googlegroups.com] On Behalf Of André Fiedler
Sent: Thursday, May 06, 2010 6:13 PM
To: mootool...@googlegroups.com
Don't know why I bothered with this, was bored I guess:
http://www.jsfiddle.net/TFp5A/
Anyway, you can do it in less lines but this uses a countdown timer as opposed to an interval timer. The advantage is you can reset the ticks on the fly instead of $clearing the event and restarting it.
The options:
fadeBox: What you want to fade
timeout: How long till an idle mouse triggers a fade
leave: Does leaving trigger an immediate fadeout
Humm, I think this is about as practical as my mootools to .toMoo function.
http://mootools.net/shell/NK4VW/1/ [The Post]
From: mootool...@googlegroups.com [mailto:mootool...@googlegroups.com] On Behalf Of André Fiedler
Sent: Thursday, May 06, 2010 6:13 PM
To: mootool...@googlegroups.com