wordpress/wp-content/themes/basic/themify/themify-builder/includes/components/base.php
/**
     * Map animation speed parameter and returns new speed
     *
	 * @param string $val Initial speed value
	 * @param string $attr attribute name
	 *
	 * @return float|int Returns speed of element based on initial value
	 */
Map animation speed parameter and returns new speed
@param string $val Initial speed value
@param string $attr attribute name

@return float|int Returns speed of element based on initial value
Map animation speed parameter and returns new speed @param string $val Initial speed value @param string $attr attribute name @return float|int Returns speed of element based on initial value
private static function map_animation_speed( $val, $attr = 'no' ) {
	    switch ( $val ) {
		    case 10:
                $speed = ($attr === 'blur') ? 20 : 670;
			    break;
		    case 9:
                $speed = ($attr === 'blur') ? 18 : 600;
			    break;
		    case 8:
                $speed = ($attr === 'blur') ? 16 : 530;
			    break;
		    case 7:
                $speed = ($attr === 'blur') ? 14 : 460;
			    break;
		    case 6:
                $speed = ($attr === 'blur') ? 12 : 390;
			    break;
		    case 4:
                $speed = ($attr === 'blur') ? 8 : 250;
			    break;
		    case 3:
                $speed = ($attr === 'blur') ? 6 : 200;
			    break;
		    case 2:
                $speed = ($attr === 'blur') ? 4 : 140;
			    break;
		    case 1:
			    $speed = ($attr === 'blur') ? 2 : 70;
			    break;
		    default:
                $speed = ($attr === 'blur') ? 10 : 320;
	    }
	    return $speed;
    }
private static function map_animation_speed ( $ val , $ attr = 'no' ) { switch ( $ val ) { case 10 : $ speed = ( $ attr === 'blur' ) ? 20 : 670 ; break ; case 9 : $ speed = ( $ attr === 'blur' ) ? 18 : 600 ; break ; case 8 : $ speed = ( $ attr === 'blur' ) ? 16 : 530 ; break ; case 7 : $ speed = ( $ attr === 'blur' ) ? 14 : 460 ; break ; case 6 : $ speed = ( $ attr === 'blur' ) ? 12 : 390 ; break ; case 4 : $ speed = ( $ attr === 'blur' ) ? 8 : 250 ; break ; case 3 : $ speed = ( $ attr === 'blur' ) ? 6 : 200 ; break ; case 2 : $ speed = ( $ attr === 'blur' ) ? 4 : 140 ; break ; case 1 : $ speed = ( $ attr === 'blur' ) ? 2 : 70 ; break ; default : $ speed = ( $ attr === 'blur' ) ? 10 : 320 ; } return $ speed ; }
Map animation speed parameter and returns new speed
 @param string $val Initial speed value
 @param string $attr attribute name
Map animation speed parameter and returns new speed @param string $val Initial speed value @param string $attr attribute name