orion3dgames / gridder

A jQuery plugin that displays a thumbnail grid expanding preview similar to the effect seen on Google Images.
http://orion3dgames.github.io/gridder/
461 stars 130 forks source link

Multiple instances #75

Open thomasonk opened 4 years ago

thomasonk commented 4 years ago

The readme says that it supports multiple instances. How should it be configured for multiple instances? I gave each instance a new gridder class (ie gridder1) and called the gridexpander to initialize each gridder instance based on the different class but that did not seem to work. Can you provide instructions on how to configure multiple instances.

Thanks

orion3dgames commented 4 years ago

Hi there, should word fine, here is a basic example with codepen showcasing multiple gridders: https://codepen.io/oriongunning/pen/dyGGOVb

Make sure there is no errors in the console, and that jquery is loaded before the gridder script. Also make sure each '.gridder-list' point to a unique #ID. (in the codepen: #content1 for ex)

sjamesmccarthy commented 4 years ago

Thanks for this post. Just a quick FYI; the codepen works great on Safari iOS but not the main demo does not work on Safari for iOS.