Skip to content

Instantly share code, notes, and snippets.

@FinalAngel
Last active December 20, 2015 11:09
Show Gist options
  • Save FinalAngel/6121673 to your computer and use it in GitHub Desktop.
Save FinalAngel/6121673 to your computer and use it in GitHub Desktop.
class.js: FeatureGallery example
var FeatureGallery = new Class(Cl.Gallery);
FeatureGallery.extend({
'move': function (index, direction) {
this.parent(index, direction);
$(window).trigger('resize');
}
});
new FeatureGallery('#gallery_{{ instance.id }}', {
'timeout': parseInt('{{ instance.timeout }}') * 1000,
'cls': {
'navigation': '.dots'
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment