mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
f6015148d3
commit
0f717a5e2d
6 changed files with 30 additions and 7 deletions
|
@ -232,6 +232,7 @@ async function lazyImage() {
|
|||
afterLoad: function (element) {
|
||||
|
||||
element.addClass('gifNotLoaded');
|
||||
element.addClass('lazyloadLoaded');
|
||||
element.removeClass('blur');
|
||||
element.mouseover(function () {
|
||||
|
||||
|
@ -470,7 +471,11 @@ async function mouseEffect() {
|
|||
var gif = $(this).find(".thumbsGIF");
|
||||
var jpg = $(this).find(".thumbsJPG");
|
||||
try {
|
||||
gif.lazy({ effect: 'fadeIn' });
|
||||
gif.lazy({ effect: 'fadeIn',
|
||||
afterLoad: function (element) {
|
||||
element.removeClass('lazyload');
|
||||
element.addClass('lazyloadLoaded');
|
||||
} });
|
||||
setTimeout(function () {
|
||||
gif.height(jpg.height());
|
||||
gif.width(jpg.width());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue