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

open preview through code #28

Open Budsy opened 8 years ago

Budsy commented 8 years ago

I have the grid working beautifully, but I'd like to be able to open a particular preview in code rather than through the usual user-click on the thumb. I can't seem to hit on the right method that works. Invoking a js click event on an anchor in the grid does not work, and I can't seem to find a method on Grid that is exposed to do this. Anybody know what I am missing?

ghost commented 8 years ago

Not sure, but worth looking at line 344 in grid.js file

brunopinho commented 7 years ago

@Budsy

Did you manage to sort how to do it? I'd also like to load my page with one preview open.

Thanks!