jquery - Reinitialize parallax.js on window resize? -
i'm using parallax.js responsive portfolio website. there "mansory" grid, has "parallaxed" images in it. when load website in smartphone view (with smaller grid width) , increase window desktop view, plugin not recalculate distances, , image slides out of grid. think needs reinitialise when resizing , tried "calibrate" option, no luck:
$(window).resize(function() { $(".exhibition").parallax({ calibratex: true, calibratey: true }); }).resize();
on demo page seems reinit or recalculate distances. how can archieve that? ideas?
Comments
Post a Comment