First, Thank you. good plug in!!
(Sorry, I am poor at english.)
Very useful.
But sometimes not worked.
When web page data not complete load (loading), mouse move. -> Just not worked !!
(but worked when must once out of window, and again enter window mouse move.)
But mouse not move, while web page loading. When web page complete load and mouse move. => Just worked !!
in chrome, FF, IE.
So i add freeze code,
(function($){
$(document).ready(function(){
var $bg3 = $('#bg3'),
$bgImg =$('#bgImg'),
$bg2 = $('#bg2'),
$bg1=$('#bg1');
$(window).resize(function(){
$bg1.css({'left':'0px','margin':'auto'});
$bg2.css({'left':'0px','margin':'auto'});
$bg3.css({'left':'0px','margin':'auto'});
$('.parallax-layer').trigger('freeze'); <-------------------freeze
$('.parallax-layer').parallax({mouseport: $('html,body'),yparallax:false,xparallax:'70%',frameDuration:10}); <-------------------move
$('.parallax-layer').trigger('unfreeze'); <-------------------unfreeze
}).resize();
});
//ready
function moveBg(){
$('.parallax-layer').trigger('unfreeze');
}
window.onload = moveBg;
})(window.jQuery);
Result, chrome, FF worked. But IE is not worked.
example site : http://werty.co.kr/blog/