codrops/ThumbnailGridExpandingPreview

Having multiple instances leaves a portion of the overlay

Closed this issue · 1 comments

I need two instances of the grid, thus I changed the grid variable to: var $grid = $( '.og-grid' ).

It all works as expected, but when I close the second instance, the upper part of the overlay doesn't close, leaving a black bar with the close icon.
You can see it here: http://madebym.me/test/couch-test/corporate-video.php

Has anyone managed to sucesfully have two or more grids?

Got it to work with two grid.js files. One for #og-grid and the other for #og-grid-2.
Not sure if this is the best way, but it works.