This should do.

$.scrollTo('#elem', 1000, {
 over:{ top:0.5 },
 offset:{ top: -$(window).height() / 2 }
});

On Sun, Nov 15, 2009 at 10:35 AM, Rizky <br4inwas...@gmail.com> wrote:

> hi ariel,
>
> great plugin here, i'm using it for my next project (if the marketing
> guys could win the pitch). currently it's still a prototype.
>
> i have a question as well. what should i do if i want to scroll to an
> element and make it appear in the center of the viewport? all elements
> are absolutely positioned.
>
> thx for the help.
>



-- 
Ariel Flesler
http://flesler.blogspot.com

Reply via email to