codrops / ThumbnailGridExpandingPreview

A tutorial on how to create a thumbnail grid with an expanding image preview similar to the effect seen on Google Images.
360 stars 143 forks source link

Multiple uses on a page - replace ID with class in JS #3

Open renwalker opened 10 years ago

renwalker commented 10 years ago

I'm using the expanding area on a page with several different groups / rows. The JS doesn't work because it's looking for a single instance of #og-grid. I'd like this plugin to work on more scalable level so that I can call it to work on all instances of .og-grid. Is that possible?

uniconstructor commented 10 years ago

You can try my pull request: https://github.com/codrops/ThumbnailGridExpandingPreview/pull/7

tamben commented 10 years ago

How do I supposed to use the selector option from #7 ?