Skip to content

Commit

Permalink
Fade in gallery to avoid show big galleries without cycle2 loaded (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfersou authored and hvelarde committed Jul 20, 2016
1 parent 5785006 commit 9e416fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ There's a frood who really knows where his towel is.
1.0b2 (unreleased)
------------------

- Fade in slideshows to avoid showing them before Cycle2 is loaded.
[rodfersou]

- Add `utils.js` script;
this script can be used by third party add-ons to easily create responsive slideshows.
[rodfersou]
Expand Down
1 change: 1 addition & 0 deletions src/collective/js/cycle2/resources/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
this.bindEvents();
this.fixImageSize();
this.centerImage();
$(el).fadeTo('slow', 1);
}
Cycle2SlideShow.prototype.bindEvents = function() {
this.$player.on('cycle-next cycle-prev', $.proxy(this.syncSlideshows, this));
Expand Down
2 changes: 1 addition & 1 deletion src/collective/js/cycle2/resources/utils.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9e416fe

Please sign in to comment.