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.
22 lines
460 B
22 lines
460 B
/* global woodmart_settings */
|
|
(function($) {
|
|
woodmartThemeModule.parallax = function() {
|
|
if (woodmartThemeModule.windowWidth <= 1024) {
|
|
return;
|
|
}
|
|
|
|
$('.wd-parallax').each(function() {
|
|
var $this = $(this);
|
|
|
|
if ($this.hasClass('wpb_column')) {
|
|
$this.find('> .vc_column-inner').parallax('50%', 0.3);
|
|
} else {
|
|
$this.parallax('50%', 0.3);
|
|
}
|
|
});
|
|
};
|
|
|
|
$(document).ready(function() {
|
|
woodmartThemeModule.parallax();
|
|
});
|
|
})(jQuery);
|
|
|