I am trying to use the YUI ScrollView with paging but I do not want to use the “previous + next” button. Instead I would like a to have a container with links to each page.
Is it possible to skip to a specific page of ScrollView on a button/link click.
Something like
scrollView.pages.ScrollToPage(3);
Any help would be highly appreciated. You can find the documentation here.
As the documentation explains, there is a
scrollTomethod in the ScrollViewPaginator plugin: http://yuilibrary.com/yui/docs/api/classes/Plugin.ScrollViewPaginator.html#method_scrollTo.You just need to write something like
scrollview.pages.scrollTo(3, 0.6, "ease-in");.