| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package FirePlugins Framework |
| 4 |
* @version 1.0.27 |
| 5 |
* |
| 6 |
* @author FirePlugins <[email protected]> |
| 7 |
* @link https://www.fireplugins.com |
| 8 |
* @copyright Copyright © 2022 FirePlugins All Rights Reserved |
| 9 |
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 |
*/ |
| 11 |
|
| 12 |
namespace FPFramework\Helpers; |
| 13 |
|
| 14 |
if (!defined('ABSPATH')) |
| 15 |
{ |
| 16 |
exit; // Exit if accessed directly. |
| 17 |
} |
| 18 |
|
| 19 |
class AnimationsHelper { |
| 20 |
|
| 21 |
/** |
| 22 |
* Returns all In Transitions |
| 23 |
* |
| 24 |
* @return array |
| 25 |
*/ |
| 26 |
public static function getTransitionsIn() |
| 27 |
{ |
| 28 |
return [ |
| 29 |
'callout.bounce' => 'Bounce', |
| 30 |
'callout.shake' => 'Shake', |
| 31 |
'callout.flash' => 'Flash', |
| 32 |
'callout.pulse' => 'Pulse', |
| 33 |
'callout.swing' => 'Swing', |
| 34 |
'callout.tada' => 'Tada', |
| 35 |
'transition.fadeIn' => 'fadeIn', |
| 36 |
'transition.swoopIn' => 'swoopIn', |
| 37 |
'transition.whirlIn' => 'whirlIn', |
| 38 |
'transition.shrinkIn' => 'shrinkIn', |
| 39 |
'transition.expandIn' => 'expandIn', |
| 40 |
'transition.flipXIn' => 'flipXIn', |
| 41 |
'transition.flipYIn' => 'flipYIn', |
| 42 |
'transition.flipBounceXIn' => 'flipBounceXIn', |
| 43 |
'transition.flipBounceYIn' => 'flipBounceYIn', |
| 44 |
'transition.bounceIn' => 'bounceIn', |
| 45 |
'transition.bounceUpIn' => 'bounceUpIn', |
| 46 |
'transition.bounceDownIn' => 'bounceDownIn', |
| 47 |
'transition.bounceLeftIn' => 'bounceLeftIn', |
| 48 |
'transition.bounceRightIn' => 'bounceRightIn', |
| 49 |
'slideDown' => 'slideIn', |
| 50 |
'firebox.slideUpIn' => 'slideUpIn', |
| 51 |
'firebox.slideDownIn' => 'slideDownIn', |
| 52 |
'firebox.slideLeftIn' => 'slideLeftIn', |
| 53 |
'firebox.slideRightIn' => 'slideRightIn', |
| 54 |
'transition.slideUpIn' => 'slideFadeUpIn', |
| 55 |
'transition.slideDownIn' => 'slideFadeDownIn', |
| 56 |
'transition.slideLeftIn' => 'slideFadeLeftIn', |
| 57 |
'transition.slideRightIn' => 'slideFadeRightIn', |
| 58 |
'transition.slideUpBigIn' => 'slideUpBigIn', |
| 59 |
'transition.slideDownBigIn' => 'slideDownBigIn', |
| 60 |
'transition.slideLeftBigIn' => 'slideLeftBigIn', |
| 61 |
'transition.slideRightBigIn' => 'slideRightBigIn', |
| 62 |
'transition.perspectiveUpIn' => 'perspectiveUpIn', |
| 63 |
'transition.perspectiveDownIn' => 'perspectiveDownIn', |
| 64 |
'transition.perspectiveLeftIn' => 'perspectiveLeftIn', |
| 65 |
'transition.perspectiveRightIn' => 'perspectiveRightIn' |
| 66 |
]; |
| 67 |
} |
| 68 |
|
| 69 |
/** |
| 70 |
* Returns all Out Transitions |
| 71 |
* |
| 72 |
* @return array |
| 73 |
*/ |
| 74 |
public static function getTransitionsOut() |
| 75 |
{ |
| 76 |
return [ |
| 77 |
'transition.fadeOut' => 'fadeOut', |
| 78 |
'transition.swoopOut' => 'swoopOut', |
| 79 |
'transition.whirlOut' => 'whirlOut', |
| 80 |
'transition.shrinkOut' => 'shrinkOut', |
| 81 |
'transition.expandOut' => 'expandOut', |
| 82 |
'transition.flipXOut' => 'flipXOut', |
| 83 |
'transition.flipYOut' => 'flipYOut', |
| 84 |
'transition.flipBounceXOut' => 'flipBounceXOut', |
| 85 |
'transition.flipBounceYOut' => 'flipBounceYOut', |
| 86 |
'transition.bounceOut' => 'bounceOut', |
| 87 |
'transition.bounceUpOut' => 'bounceUpOut', |
| 88 |
'transition.bounceDownOut' => 'bounceDownOut', |
| 89 |
'transition.bounceLeftOut' => 'bounceLeftOut', |
| 90 |
'transition.bounceRightOut' => 'bounceRightOut', |
| 91 |
'slideUp' => 'slideOut', |
| 92 |
'firebox.slideUpOut' => 'slideUpOut', |
| 93 |
'firebox.slideDownOut' => 'slideDownOut', |
| 94 |
'firebox.slideLeftOut' => 'slideLeftOut', |
| 95 |
'firebox.slideRightOut' => 'slideRightOut', |
| 96 |
'transition.slideUpOut' => 'slideFadeUpOut', |
| 97 |
'transition.slideDownOut' => 'slideFadeDownOut', |
| 98 |
'transition.slideLeftOut' => 'slideFadeLeftOut', |
| 99 |
'transition.slideRightOut' => 'slideFadeRightOut', |
| 100 |
'transition.slideUpBigOut' => 'slideUpBigOut', |
| 101 |
'transition.slideDownBigOut' => 'slideDownBigOut', |
| 102 |
'transition.slideLeftBigOut' => 'slideLeftBigOut', |
| 103 |
'transition.slideRightBigOut' => 'slideRightBigOut', |
| 104 |
'transition.perspectiveUpOut' => 'perspectiveUpOut', |
| 105 |
'transition.perspectiveDownOut' => 'perspectiveDownOut', |
| 106 |
'transition.perspectiveLeftOut' => 'perspectiveLeftOut', |
| 107 |
'transition.perspectiveRightOut' => 'perspectiveRightOut', |
| 108 |
]; |
| 109 |
} |
| 110 |
|
| 111 |
} |