Файловый менеджер - Редактировать - /home/digitalm/www/zetaworks/wp-content/themes/uncode/library/js/magnetic.min.js
Назад
(function($){"use strict";UNCODE.magneticCursor=function(){function magneticCursor($wrap){$wrap=typeof $wrap=="undefined"?$("body"):$wrap;var $magnetics=$wrap.find(".tmb-image-anim-magnetic .t-entry-visual").has("img:not(.avatar), .t-background-cover, .dummy.secondary-dummy-image, .t-secondary-background-cover").add($(".magnetic").has(".background-inner, .header-bg"));$magnetics.on("mousemove",function(e){var $el=$("img:not(.avatar), .t-background-cover, .fluid-object, .dummy.secondary-dummy-image, .t-secondary-background-cover, .background-inner, .header-bg",this),bound=e.currentTarget.getBoundingClientRect(),coeff=30,hor=bound.width/2-(e.clientX-bound.left),ver=bound.height/2-(e.clientY-bound.top),toX=hor/bound.width*coeff,toY=ver/bound.height*coeff,scaleX=((bound.width+coeff+5)/bound.width).toFixed(2),scaleY=((bound.height+coeff+5)/bound.height).toFixed(2),toScale=Math.max(scaleX,scaleY);gsap.killTweensOf($el),gsap.to($el,{duration:.75,x:toX,y:toY,scale:toScale,ease:Power1.easeOut,transformPerspective:900,transformOrigin:"center",force3D:!0})}).on("mouseout",function(e){var $el=$("img:not(.avatar), .t-background-cover, .fluid-object, .dummy.secondary-dummy-image, .t-secondary-background-cover, .background-inner, .header-bg",this);gsap.killTweensOf($el),gsap.to($el,{duration:.6,y:0,x:0,scale:1,ease:Power1.easeOut,transformPerspective:900,transformOrigin:"center",force3D:!0})})}$(window).on("load uncode-custom-cursor uncode-quick-view-loaded",function(event){magneticCursor()}),$(document).ajaxComplete(function(event,xhr,settings){magneticCursor()}),$(".isotope-container").on("isotope-layout-complete",function(){var $this=$(this);magneticCursor($this)})}})(jQuery)
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.04 |
proxy
|
phpinfo
|
Настройка