PageSourceSearch

https://www.drainstrain.com/cdn/shop/t/77/assets/jquery.parallax_mousemove.js?v=30853399216904923501788182704

js drainstrain.com collected 2026-10-03 21:21:27 UTC 2,210 bytes, 2 lines download raw bytes

1(function($){var $window=$(window),windowHeight=$window.height();$window.resize(function(){windowHeight=$window.height()}),$.fn.parallax=function(startPos,speedFactor,outerHeight){var $this=$(this),getHeight,firstTop,paddingTop=0;$this.each(function(){firstTop=$this.offset().top}),outerHeight?getHeight=function(jqo){return jqo.outerHeight(!0)}:getHeight=function(jqo){return jqo.height()},(arguments.length<1||startPos===null)&&(startPos=0),(arguments.length<2||speedFactor===null)&&(speedFactor=.1),(arguments.length<3||outerHeight===null)&&(outerHeight=!0);function update(){var pos=$window.scrollTop();$this.each(function(){firstTop=$this.offset().top;var $element=$(this),top=$element.offset().top,height=getHeight($element),parentTop=$element.parent().offset().top,parentHeight=getHeight($element.parent());if(!(parentTop+parentHeight<pos||parentTop>pos+windowHeight)){var move=Math.round((firstTop-pos)*speedFactor);move=-startPos+move/height*-100,anime({targets:$element[0],duration:100,easing:"linear",translateY:move+"%",marginLeft:"50%",translateX:"-50%",translateZ:0})}})}$window.on("scroll",function(){$.debounce(100,function(){update()})()}).on("resize",update),update()},$.fn.mouseMove=function(area_mouse){var $this=$(this),lFollowX=0,lFollowY=0,x=0,y=0;function moveBackground(elem){var height=elem.height(),height_extra=elem.children().height()*1.1,ratio_height=(height_extra-elem.children().height())/height,width=elem.width(),width_extra=elem.children().width()*1.1,ratio_width=(width_extra-elem.children().width())/width;x+=lFollowX-x,y+=lFollowY-y,anime({targets:elem.children()[0],duration:Math.abs(x*ratio_width),easing:"linear",translateX:x*ratio_width,translateY:y*ratio_height,translateZ:0,scale:1.1})}$this.each(function(){var $mover_container=$this.parent();area_mouse.on("mousemove click",function(evt){var offset=$mover_container.offset(),lMouseX=$mover_container.width()/2-(evt.pageX-offset.left),lMouseY=$mover_container.height()/2-(evt.pageY-offset.top);lFollowX=lMouseX,lFollowY=lMouseY,$.debounce(100,function(){moveBackground($mover_container)})()})})}})(jQuery);
2//# sourceMappingURL=/cdn/shop/t/77/assets/jquery.parallax_mousemove.js.map?v=30853399216904923501788182704

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.