search for: scrolltofullview

Displaying 1 result from an estimated 1 matches for "scrolltofullview".

2006 Feb 18
0
Move element into view
...lo, I am in fly-by mode as I am still more than busy, so I just dumb this one out for anyone interested. Adapt it for your needs if you like it. This effect is similar to ScrollTo, but scrolls the viewport vertically the minimal amount necessary to bring the element into view. Usage: new Effect.ScrollToFullView(element, {duration: 0.6, offset: 10}); Offset is the distance in pixel to the upper/lower viewport border. You need to define window.isIE as true/false somewhere prior or change the code. // Nur sowenig wie möglich scrollen, bis das Element sichtbar ist. Effect.ScrollToFullView = Class.create();...