zuk / jquery.inview

Remy Sharp's jQuery plugin adds a bindable 'inview' event for detecting when an element is scrolled into view.
http://remysharp.com/2009/01/26/element-in-view-event-plugin/
Other
277 stars 586 forks source link

Anyway to make it work with multiple elements of same class? #10

Closed thewebsitedev closed 10 years ago

thewebsitedev commented 11 years ago

I have a few elements that i want to animate. But when I add class like -

$('myClass').bind('inview', function (event, visible, topOrBottomOrBoth)......

All animations perform at the same time, I mean when the first element is in view all the animations get triggered at the same time.

Anyway to make element of same class to be triggered only when they are in viewport?

thewebsitedev commented 10 years ago

Sorry, it was a bad question. We can use ID instead. I don't know what was going through my mind at that time.