1jQuery(document).ready(function($){ 2 var w_width = $(this).width() / 2; 3 var w_height = $(this).height() / 2; 4 $('.vc_row').each(function(){ 5 $(this).bind('mousemove',function(e){ 6 if(e.pageX >= w_width){ 7 $(this).find('.el-parallax').each(function(){ 8 var speed = $(this).attr('data-speed'); 9 var move_x = $(this).attr('data-move'); 10 11 speed = (speed != undefined && speed != '') ? speed : 5 ; 12 move_x = (move_x != undefined && move_x != '') ? move_x : 40 ; 13 14 var move_y = (w_height >= e.pageY) ? -5 : +5 ; 15 16 LaxMoving($(this), -move_x, move_y, speed); 17 }); 18 } else { 19 $(this).find('.el-parallax').each(function(){ 20 var speed = $(this).attr('data-speed'); 21 var move_x = $(this).attr('data-move'); 22 23 speed = (speed != undefined && speed != '') ? speed : 5 ; 24 move_x = (move_x != undefined && move_x != '') ? move_x : 40 ; 25 26 var move_y = (w_height <= e.pageY) ? -5 : +5 ; 27 28 LaxMoving($(this), move_x, move_y, speed); 29 }); 30 } 31 }); 32 function LaxMoving(selector, move_x, move_y, speed){ 33 selector.css({ 34 'transform': 'translate('+move_x+'px,'+move_y+'px)', 35 '-webkit-transform': 'translate('+move_x+'px,'+move_y+'px)', 36 '-o-transform': 'translate('+move_x+'px,'+move_y+'px)', 37 '-moz-transform': 'translate('+move_x+'px,'+move_y+'px)', 38 '-webkit-transition' : 'all ' + speed + 's ease-out', 39 '-moz-transition' : 'all ' + speed + 's ease-out', 40 '-o-transition' : 'all ' + speed + 's ease-out', 41 'transition' : 'all ' + speed + 's ease-out', 42 'animation-name' : 'inherit', 43 '-webkit-animation-name' : 'inherit', 44 '-ms-animation-name' : 'inherit', 45 '-o-animation-name' : 'inherit', 46 }); 47 } 48 }); 49});
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.