# uicore-elements/1.0.8/includes/class-animate.php

UiCore Elements – Free widgets and templates for Elementor, version 1.0.8. 43 lines.

- Page: https://pluginprobe.com/plugins/uicore-elements/1.0.8/code/includes/class-animate.php
- Raw: https://pluginprobe.com/plugins/uicore-elements/1.0.8/raw/includes/class-animate.php
- Modified: 2024-08-05T13:38:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/uicore-elements/1.0.8/code/includes/class-animate.php#L10-L20`.

```php
<?php
namespace UiCoreElements;

use Elementor\Controls_Stack;
use Elementor\Controls_Manager;

defined('ABSPATH') || exit();

/**
 * Replace UiCore Animate Plugin
 */
class Animate
{

	private static $badge = '<span title="Powerd by UiCore Animate" style="font-size: 11px; text-transform: uppercase; background: #5dbad8; color: black; padding: 2px 5px; border-radius: 3px; margin-right: 7px;">Animate</span>';

    public function __construct() {
        add_action( 'elementor/element/heading/section_title_style/after_section_end', [$this, 'split_animation'],55);
        add_action( 'elementor/element/highlighted-text/section_title_style/after_section_end', [$this, 'split_animation'],55);
		add_action( 'elementor/element/text-editor/section_drop_cap/after_section_end', [$this, 'split_animation'],55);
    }

    static function split_animation(Controls_Stack $widget)
    {
            $widget->start_controls_section(
				'section_ui_split_animation',
				[
					'label' => self::$badge . esc_html__( 'Split Text Animation', 'uicore-elements' ),
					'tab' => Controls_Manager::TAB_STYLE,
				]
			);
			$widget->add_control(
				'important_note',
				[
					'label' => esc_html__( 'UiCore Animate required', 'uicore-elements' ),
					'type' => \Elementor\Controls_Manager::RAW_HTML,
					'raw' => __( '<p style="line-height:1.3;margin-top:1em;">Download and instal <a href="https://wordpress.org/plugins/uicore-animate/advanced/" target="_blank">UiCore Animate</a> for more advanced animations control</p>', 'uicore-elements' ),
				]
			);
			$widget->end_controls_section();
    }
}
new Animate();
```
