Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollTo(pos) or scrollTo(page) #32

Open
vacatoro opened this issue Jun 24, 2012 · 1 comment
Open

scrollTo(pos) or scrollTo(page) #32

vacatoro opened this issue Jun 24, 2012 · 1 comment

Comments

@vacatoro
Copy link

Hi,

Is there a way to make the scrollable div scroll to a certain position and/or page? E.g. for a menu to scroll to a certain page.
I tried to animate the webkit-transform property but it didn't work. I also looked at the full source but didn't really get anywhere.
If you could point me in the right direction that would be great.

Thanks!

@ghost
Copy link

ghost commented Jul 19, 2012

Me too ! Actually in the past I was resetting the scrollbar in some specific case.
To do it, I was resetting the scrollable_vertical variable to 0 and setting the style to webkit-transform: translate3d( 0, 0, 0 );
Now it's using dynamic css generation if I got it, but I would like to reset in an "elegant" maner.
Where is the ideal location code to hack / customize ? Thank you in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant