trAvis - MANAGER
Edit File: plus-mouse-move-parallax.min.js
(function(a){'use strict';a(document).ready(function(){plus_mousemove_parallax()})})(jQuery);function plus_mousemove_parallax(){"use strict";var a=jQuery,b=a(".pt-plus-move-parallax"),c=b.find(".parallax-move");0<b.length&&(a(".pt-plus-move-parallax").on("mouseleave",function(b){var c=b.pageX-.5*a(this).width(),d=b.pageY-.5*a(this).height();a(this).find(".parallax-move").each(function(){var b=a(this),c=b.data("move_speed_x"),d=b.data("move_speed_y");TweenLite.to(b,.9,{x:0,y:0})})}),b.on("mousemove",function(b){a(this).find(".parallax-move").each(function(){var c=a(this),d=c.data("move_speed_x"),e=c.data("move_speed_y");a(this).parallaxmovecontent(d,e,b)})}),a.fn.parallaxmovecontent=function(b,c,d){var e=a(this);TweenLite.to(e,.5,{x:-((d.clientX-window.innerWidth/2)/b),y:-((d.clientY-window.innerHeight/2)/c)})})}