You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
832 B
33 lines
832 B
/* global woodmart_settings */
|
|
(function($) {
|
|
$.each([
|
|
'frontend/element_ready/wd_banner_carousel.default',
|
|
'frontend/element_ready/wd_banner.default',
|
|
], function(index, value) {
|
|
woodmartThemeModule.wdElementorAddAction(value, function() {
|
|
woodmartThemeModule.bannersHover();
|
|
});
|
|
});
|
|
|
|
woodmartThemeModule.bannersHover = function() {
|
|
if (typeof ($.fn.panr) === 'undefined') {
|
|
return;
|
|
}
|
|
|
|
$('.promo-banner.banner-hover-parallax').panr({
|
|
sensitivity : 20,
|
|
scale : false,
|
|
scaleOnHover : true,
|
|
scaleTo : 1.15,
|
|
scaleDuration : .34,
|
|
panY : true,
|
|
panX : true,
|
|
panDuration : 0.5,
|
|
resetPanOnMouseLeave: true
|
|
});
|
|
};
|
|
|
|
$(document).ready(function() {
|
|
woodmartThemeModule.bannersHover();
|
|
});
|
|
})(jQuery);
|
|
|