Team:SYSU-China/galleria.dots.js
From 2011.igem.org
(Difference between revisions)
(Created page with "- →! * Galleria Dots Theme * http://galleria.aino.se * * Copyright (c) 2010, Aino * Licensed under the MIT license.: (function($) { Galleria.addTheme({ name: 'dots',...") |
|||
Line 13: | Line 13: | ||
author: 'Galleria', | author: 'Galleria', | ||
version: '1.1', | version: '1.1', | ||
- | css: 'galleria.dots.css', | + | css: 'https://2011.igem.org/Team:SYSU-China/galleria.dots.css', |
defaults: { | defaults: { | ||
transition: 'slide', | transition: 'slide', |
Latest revision as of 06:36, 23 October 2011
/*!
* Galleria Dots Theme * http://galleria.aino.se * * Copyright (c) 2010, Aino * Licensed under the MIT license. */
(function($) {
Galleria.addTheme({
name: 'dots', author: 'Galleria', version: '1.1', css: 'https://2011.igem.org/Team:SYSU-China/galleria.dots.css', defaults: { transition: 'slide', transition_speed: 500, thumbnails: 'empty', carousel: false, image_crop: false, autoplay: 5000 }, init: function(options) { this.$('thumbnails').find('.galleria-image').css('opacity',0.5).hover(function() { $(this).fadeTo(200,1); }, function() { $(this).not('.active').fadeTo(200,.5); }); this.$('info').insertAfter(this.target); this.rescale(); this.bind(Galleria.LOADSTART, function(e) { if (!e.cached) { this.$('loader').show().fadeTo(200, .8); } $(e.thumbTarget).parent().stop().css('opacity',1).addClass('active').siblings('.active').removeClass('active').css('opacity',0.5) }); this.bind(Galleria.LOADFINISH, function(e) { this.$('loader').fadeOut(200); }); }
});
})(jQuery);