(function($) { "use strict"; $(window).on('elementor/frontend/init', function($scope, settings) { var _elementor = typeof elementor != 'undefined' ? elementor : elementorFrontend; // Parallax var CMSParallax = function ($scope, $){ var $items = $scope.find( '.cms-parallax' ), parallaxInstances = $('[data-parallax]'); if ( parallaxInstances.length && typeof ParallaxScroll === 'object' ) { ParallaxScroll.init(); //initialization removed from plugin js file to have it run only on non-touch devices } } elementorFrontend.hooks.addAction('frontend/element_ready/global', CMSParallax); }); }(jQuery));