Add fade in animation to document image widget.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-07-25 07:17:14 -04:00
parent ddee13ed66
commit ca643b23ba
3 changed files with 7 additions and 1 deletions

View File

@@ -13,6 +13,7 @@
Add date and time to the production logger.
- Add support for generating setup.py from a template. GitLab
#149 #200.
- Add fade in animation to document images.
2.6.2 (2017-07-19)
==================

View File

@@ -24,6 +24,7 @@ Changes
Add date and time to the production logger.
- Add support for generating setup.py from a template. GitLab
#149 #200.
- Add fade in animation to document images.
Removals
--------

View File

@@ -153,7 +153,7 @@ MayanImage.intialize = function () {
appear: function(elements_left, settings) {
new MayanImage({element: $(this)});
},
threshold: 400
threshold: 400,
});
$('img.lazy-load-carousel').lazyload({
@@ -165,11 +165,15 @@ MayanImage.intialize = function () {
});
$('.lazy-load').on('load', function() {
$(this).hide();
$(this).fadeIn();
$(this).siblings('.spinner-container').remove();
$(this).removeClass('lazy-load pull-left');
});
$('.lazy-load-carousel').on('load', function() {
$(this).hide();
$(this).fadeIn();
$(this).siblings('.spinner-container').remove();
$(this).removeClass('lazy-load-carousel pull-left');
});