Skip to content
This repository has been archived by the owner on Dec 23, 2019. It is now read-only.

How to use it on multiple elements having same ID? #2

Closed
thewebsitedev opened this issue Oct 18, 2013 · 4 comments
Closed

How to use it on multiple elements having same ID? #2

thewebsitedev opened this issue Oct 18, 2013 · 4 comments

Comments

@thewebsitedev
Copy link

I have a few divs with the same class and I want them to animate once they are in the viewport. How can it be achieved?

I tried by adding the div class but it only animates the very first div.

@davidhalford
Copy link
Owner

You can't. ID's are unique and you're not supposed to use an ID more than once in your page.

@thewebsitedev
Copy link
Author

Sorry for me being dumb, I meant class.

@davidhalford
Copy link
Owner

check out this fork: Sjerrul@b9854ef

that should do it.

@thewebsitedev
Copy link
Author

Thanks! will check it out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants