in src/assets/js/parallax.js [22:48]
$.fn.parallax = function (settings) {
var config = {
container: '.slideshow',
offsetIntertia: 0.15,
offsetPosition: 0,
};
if (settings) $.extend(config, settings);
var $window = $(window);
var is_touch_device = 'ontouchstart' in document.documentElement;
this.each(function () {
$(this).parallaxBg({
container: config.container,
offsetIntertia: config.offsetIntertia,
offsetPosition: config.offsetPosition,
$window: $window,
is_touch_device: is_touch_device,
});
})
.closest(config.container)
.on('transition_out', function (obj, $slide, $next, direction) {
$next.trigger('resizecheck');
});
return this;
};