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

How to get the current scope #49

Closed ujwaldhakal closed 6 years ago

ujwaldhakal commented 7 years ago

How to get the current scope on gridder click

orion3dgames commented 6 years ago

You can use the onContent event as show below. It triggers after content has opened.


$(".gridder").gridderExpander({
                    scrollOffset: 60,
                    scrollTo: "panel", // "panel" or "listitem"
                    animationSpeed: 400,
                    animationEasing: "easeInOutExpo",
                    onStart: function () {
                        console.log("Gridder Inititialized");
                    },
                    onContent: function (object) {
                         object.find('.title').addClass('selected');
                    }
});
ujwaldhakal commented 6 years ago

Thank you