mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Make Gif Loads after jpeg loads
This commit is contained in:
parent
bfc31d8f30
commit
3875d2b040
1 changed files with 4 additions and 1 deletions
|
@ -73,12 +73,15 @@ $(document).ready(function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$('.thumbsJPG, .thumbsGIF').lazy({
|
$('.thumbsJPG').lazy({
|
||||||
effect: 'fadeIn',
|
effect: 'fadeIn',
|
||||||
visibleOnly: true,
|
visibleOnly: true,
|
||||||
// called after an element was successfully handled
|
// called after an element was successfully handled
|
||||||
afterLoad: function(element) {
|
afterLoad: function(element) {
|
||||||
element.removeClass('blur');
|
element.removeClass('blur');
|
||||||
|
element.parent().find('.thumbsGIF').lazy({
|
||||||
|
effect: 'fadeIn'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue