ns ); $element->update_control( 'background_motion_fx_motion_fx_mouse', $options ); $element->end_injection(); $this->add_asset_loading_control_to_element( $element, [], 'background_' ); } public function register_frontend_styles() { $suffix = Utils::is_script_debug() ? '' : '.min'; wp_register_style( 'e-motion-fx', ELEMENTOR_PRO_URL . 'assets/css/modules/motion-fx' . $suffix . '.css', [], ELEMENTOR_PRO_VERSION ); } public function enqueue_preview_styles() { wp_enqueue_style( 'e-motion-fx' ); } private function add_actions() { add_action( 'elementor/frontend/after_register_styles', [ $this, 'register_frontend_styles' ] ); add_action( 'elementor/preview/enqueue_styles', [ $this, 'enqueue_preview_styles' ] ); add_action( 'elementor/controls/register', [ $this, 'register_controls_group' ] ); add_action( 'elementor/element/section/section_effects/after_section_start', [ $this, 'add_controls_group_to_element' ] ); add_action( 'elementor/element/container/section_effects/after_section_start', [ $this, 'add_controls_group_to_element' ] ); add_action( 'elementor/element/column/section_effects/after_section_start', [ $this, 'add_controls_group_to_element' ] ); add_action( 'elementor/element/common/section_effects/after_section_start', [ $this, 'add_controls_group_to_element' ] ); add_action( 'elementor/element/section/section_background/before_section_end', [ $this, 'add_controls_group_to_element_background' ] ); add_action( 'elementor/element/container/section_background/before_section_end', [ $this, 'add_controls_group_to_element_background' ] ); add_action( 'elementor/element/column/section_style/before_section_end', [ $this, 'add_controls_group_to_element_background' ] ); } }