| Server IP : 10.19.1.101 / Your IP : 216.73.216.158 Web Server : Apache System : Linux web1f13.kinghost.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64 User : schererimoveisrs ( 170628) PHP Version : 7.4.33 Disable Function : apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/schererimoveisrs/www/wp-content/plugins/elementor/modules/interactions/ |
Upload File : |
<?php
namespace Elementor\Modules\Interactions;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Presets {
const DEFAULT_DURATION = 600;
const DEFAULT_DELAY = 0;
const DEFAULT_SLIDE_DISTANCE = 100;
const DEFAULT_SCALE_START = 0;
const DEFAULT_RELATIVE_TO = 'viewport';
const DEFAULT_END = 15;
const DEFAULT_START = 85;
const BASE_TRIGGERS = [ 'load', 'scrollIn' ];
const ADDITIONAL_TRIGGERS = [ 'scrollOut', 'scrollOn', 'hover', 'click' ];
const DEFAULT_EASING = 'easeIn';
const BASE_EFFECTS = [ 'fade', 'slide', 'scale' ];
const ADDITIONAL_EFFECTS = [ 'custom' ];
const TYPES = [ 'in', 'out' ];
const DIRECTIONS = [ 'left', 'right', 'top', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right', '' ];
const BASE_EASING = [ 'easeIn' ];
const ADDITIONAL_EASING = [ 'easeOut', 'easeInOut', 'backIn', 'backInOut', 'backOut', 'linear' ];
const DEFAULT_REPEAT = '';
const REPEAT_OPTIONS = [ 'loop', 'times', '' ];
public static function easing_options() {
return array_merge( self::BASE_EASING, self::ADDITIONAL_EASING );
}
public static function effects_options() {
return array_merge( self::BASE_EFFECTS, self::ADDITIONAL_EFFECTS );
}
public static function triggers_options() {
return array_merge( self::BASE_TRIGGERS, self::ADDITIONAL_TRIGGERS );
}
public function defaults() {
return [
'defaultDuration' => self::DEFAULT_DURATION,
'defaultDelay' => self::DEFAULT_DELAY,
'slideDistance' => self::DEFAULT_SLIDE_DISTANCE,
'scaleStart' => self::DEFAULT_SCALE_START,
'defaultEasing' => self::DEFAULT_EASING,
'relativeTo' => self::DEFAULT_RELATIVE_TO,
'repeat' => self::DEFAULT_REPEAT,
'start' => self::DEFAULT_START,
'end' => self::DEFAULT_END,
];
}
}