PluginProbe
Hello Plus / 1.2.0
Hello Plus v1.2.0
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7.0 1.7.1 1.7.2 1.7.3 All 30 releases
hello-plus / modules / content / classes / control-zig-zag-animation.php

control-zig-zag-animation.php in Hello Plus 1.2.0, at modules/content/classes/control-zig-zag-animation.php

40 lines 884 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace HelloPlus\Modules\Content\Classes;
3
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit; // Exit if accessed directly.
6 }
7
8 use Elementor\Control_Animation;
9
10 class Control_Zig_Zag_Animation extends Control_Animation {
11
12 const CONTROL_TYPE = 'ehp-zigzag-animation';
13
14 public function get_type(): string {
15 return static::CONTROL_TYPE;
16 }
17
18 public static function get_default_animations(): array {
19 return [
20 'Fading' => [
21 'fadeIn' => 'Fade In',
22 'fadeInLeft' => 'Fade In Left',
23 'fadeInRight' => 'Fade In Right',
24 'fadeInUp' => 'Fade In Up',
25 ],
26 'Bouncing' => [
27 'bounceIn' => 'Bounce In',
28 'bounceInLeft' => 'Bounce In Left',
29 'bounceInRight' => 'Bounce In Right',
30 'bounceInUp' => 'Bounce In Up',
31 ],
32 'Sliding' => [
33 'slideInLeft' => 'Slide In Left',
34 'slideInRight' => 'Slide In Right',
35 'slideInUp' => 'Slide In Up',
36 ],
37 ];
38 }
39 }
40