![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/clinic.corals.io/public/assets/front/js/ |
window.scwHoverAnimationPlugin = window.scwHoverAnimationPlugin || {}; window.SEMICOLON_hoverAnimationInit = function ($hoverAnimationEl) { $hoverAnimationEl = $hoverAnimationEl.filter(':not(.customjs)'); if ($hoverAnimationEl.length < 1) { return true; } $hoverAnimationEl.each(function () { let element = $(this), elAnimate = element.attr('data-hover-animate'), elAnimateOut = element.attr('data-hover-animate-out') || 'fadeOut', elSpeed = element.attr('data-hover-speed') || 600, elDelay = element.attr('data-hover-delay'), elParent = element.attr('data-hover-parent'), elReset = element.attr('data-hover-reset') || 'false'; element.addClass('not-animated'); if (!elParent) { if (element.parents('.bg-overlay').length > 0) { elParent = element.parents('.bg-overlay'); } else { elParent = element; } } else { if (elParent == 'self') { elParent = element; } else { elParent = element.parents(elParent); } } let elDelayT = 0; if (elDelay) { elDelayT = Number(elDelay); } if (elSpeed) { element.css({ 'animation-duration': Number(elSpeed) + 'ms' }); } let t, x; elParent.hover(function () { clearTimeout(x); t = setTimeout(function () { element.addClass('not-animated'). removeClass(elAnimateOut + ' not-animated'). addClass(elAnimate + ' animated'); }, elDelayT); }, function () { element.addClass('not-animated'). removeClass(elAnimate + ' not-animated'). addClass(elAnimateOut + ' animated'); if (elReset == 'true') { x = setTimeout(function () { element.removeClass(elAnimateOut + ' animated'). addClass('not-animated'); }, Number(elSpeed)); } clearTimeout(t); }); }); };