I'm coding a feature for a photographer that is very similar to a slideshow. I've decided to use the jQuery serialScroll plugin (which piggybacks on the scrollTo plugin) to achieve this affect. I based my code off of the slideshow on the serialScroll demo page, which is almost exactly the functionality that I was looking for.
I've got the code working successfully, but I'd like to achieve one more effect. If possible, I'd love for the items in my slideshow (in my case, <li>
elements), to be semitransparent by default, with only the current (or "active," or "selected") item showing at 100% opacity.
I can control the transparency with CSS easily, but I am struggling to track the last item that serialScroll has animated to. How can I interact with the currently "active" item via jQuery so that I can give it a class or perform other actions?