1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
Daniel Neto 2023-11-16 10:54:08 -03:00
parent f6015148d3
commit 0f717a5e2d
6 changed files with 30 additions and 7 deletions

View file

@ -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());