zurb/foundation — pull request #2557 by damirkotoric (2013-06-12 14:04:42+00:00)
Title: Improving data-orbit-link to act as custom Orbit navigation

As I've mentioned in the commits I know my code may not be the best but it's the idea that counts. So please improve it / rewrite as needed :)

The idea here is to improve data-orbit-link so that it keeps up with Orbit slides. A class of 'active' is added (and removed) from the list of data-orbit-link elements as the slides are changed. This information can then be used to visually highlight the appropriate active link as I did on http://new.damir.com.au/ on the Testimonials section.

An even nicer visual improvement would be to immediately set the active link to the new slide as soon as it is clicked. Then animate in the new slide. Currently the slide is animated in and the appropriate link is changed after the slide has finished animating. This makes the effect appear a little laggy. However I didn't want to complicate the code any more until you have a look at it.