PageSourceSearch

https://www.hagi.com.pl/theme/a8d927afccd27f286556d3dcba21238b/js/…mos.zen-parallax-mousemove.plugin.52788c.js

js hagi.com.pl collected 2026-10-03 21:34:42 UTC 1,275 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[38963],{8963:(e,t,s)=>{s.r(t),s.d(t,{default:()=>i});class i extends window.PluginBaseClass{static #e=this.options={speed:"5",parallaxTargetSelector:"",moveDebounceTime:10,firstMoveDuration:300};init(){this._parallaxTarget=this.el.querySelectorAll(this.options.parallaxTargetSelector),this._parallaxTarget&&this._parallaxTarget.length&&(this._didFirstMove=!1,this._registerEvents())}_registerEvents(){this.el.addEventListener("mousemove",this._onMouseMove.bind(this)),this.el.addEventListener("mouseleave",()=>{this._didFirstMove=!1}),this.el.addEventListener("mouseenter",()=>{this._didFirstMove=!1})}_onMouseMove(e){var t=this;let s=function(){let s=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t._parallaxTarget.forEach(i=>{let a=i.getAttribute("data-zen-speed")?i.getAttribute("data-zen-speed"):t.options.speed,r=(window.innerWidth-e.pageX*a)/90,o=(window.innerHeight-e.pageY*a)/90;s&&(i.style.transition=`transform ${t.options.firstMoveDuration}ms ease-out`),i.style.transform=`translateX(${r}px) translateY(${o}px)`}),s&&setTimeout(()=>{t._parallaxTarget.forEach(e=>{e.style.transition=""})},t.options.firstMoveDuration+20)};if(!this._didFirstMove){this._didFirstMove=!0,s(!0);return}s(!1)}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.