darsain / sly

JavaScript library for one-directional scrolling with item based navigation support.
http://darsa.in/sly
2.87k stars 497 forks source link

How do i make it go based on li navigation buttons? #199

Closed techsin closed 9 years ago

techsin commented 9 years ago

I want to do something like this:

<li data-item = "0">First Page</li>
<li data-item = "1">2nd Page</li>
<li data-item = "2">3rd Page</li>

so either one of these clicked then frame scrolls to those slides and if someone slides to one of the slides a class gets attached to the li item.

I have been looking in documents they seem to talk about scrollbar a lot but no where about buttons or li. However examples have something similar as in horizontal navigation examples pages.

darsain commented 9 years ago

You are looking for pagesBar (and pageBuilder below it) options.