I've seen only 1 or 2 examples of fixing an element onto a page using
MooTools, making the element scroll with the window, or a position
relative to the window, as the page is scrolled up and down. This is
the most basic example I can find:

window.addEvent('scroll', function(){
        $('id-name').setStyle('top', Window.getScrollTop()+'px');
});

The problem is I'd like add effects so that, for instance, there is a
delay on the element scrolling with the window using Transitions, and
also the ability to specify the duration on this.

Also, I'd like to start the event only when the element "hits" the
window pane, rather than always being stuck to the browser window.

Basically, I want this (see URL), but in MooTools, not JQuery!:
http://kitchen.net-perspective.com/open-source/scroll-follow/

Any idea's appreciated
Thanks

Reply via email to