Reputation: 2289
I feel like this has already been answered and implemented, but I cannot figure out the right terms or keywords to find it.
I'm using Scrollable as a subnav of sorts here: http://www.thepit-raleigh.com/press/
It shows 5 items at a time. How do I make it that the current page's link/image in the scrollable is visible when I'm on that given page.
Example, the 6th page/link (http://www.thepit-raleigh.com/press/herald-sun/) currently does not show when on that page as it's the 6th item in the scrollable.
Thanks in advance, Keefer
Upvotes: 0
Views: 2727
Reputation: 2091
You should be able to use the seekTo(index, speed)
function. eg:
<script>
$(window).load(function() {
var api = $(".subnavScrollable").data("scrollable");
api.seekTo(5, 1000);
});
</script>
Upvotes: 1