Copied!

Annimation will validate proper annimation types

CloneableInstantiable
Methods
public static allAnimations() : array
 

Return all valid animation strings

  • return string[]
public static isValid(string $animation) : bool
 

Return true if it is a valid animation type. Empty string is valid.

Properties
private static array $animations = ['slide-in-down' => true, 'slide-in-left' => true, 'slide-in-up' => true, 'slide-in-right' => true, 'slide-out-down' => true, 'slide-out-left' => true, 'slide-out-up' => true, 'slide-out-right' => true, 'fade-in' => true, 'fade-out' => true, 'hinge-in-from-top' => true, 'hinge-in-from-right' => true, 'hinge-in-from-bottom' => true, 'hinge-in-from-left' => true, 'hinge-in-from-middle-x' => true, 'hinge-in-from-middle-y' => true, 'hinge-out-from-top' => true, 'hinge-out-from-right' => true, 'hinge-out-from-bottom' => true, 'hinge-out-from-left' => true, 'hinge-out-from-middle-x' => true, 'hinge-out-from-middle-y' => true, 'scale-in-up' => true, 'scale-in-down' => true, 'scale-out-up' => true, 'scale-out-down' => true, 'spin-in' => true, 'spin-out' => true, 'spin-in-ccw' => true, 'spin-out-ccw' => true]
 
  • var array<string,true>
Properties
private static array $animations = ['slide-in-down' => true, 'slide-in-left' => true, 'slide-in-up' => true, 'slide-in-right' => true, 'slide-out-down' => true, 'slide-out-left' => true, 'slide-out-up' => true, 'slide-out-right' => true, 'fade-in' => true, 'fade-out' => true, 'hinge-in-from-top' => true, 'hinge-in-from-right' => true, 'hinge-in-from-bottom' => true, 'hinge-in-from-left' => true, 'hinge-in-from-middle-x' => true, 'hinge-in-from-middle-y' => true, 'hinge-out-from-top' => true, 'hinge-out-from-right' => true, 'hinge-out-from-bottom' => true, 'hinge-out-from-left' => true, 'hinge-out-from-middle-x' => true, 'hinge-out-from-middle-y' => true, 'scale-in-up' => true, 'scale-in-down' => true, 'scale-out-up' => true, 'scale-out-down' => true, 'spin-in' => true, 'spin-out' => true, 'spin-in-ccw' => true, 'spin-out-ccw' => true]
 
  • var array<string,true>
Methods
public static allAnimations() : array
 

Return all valid animation strings

  • return string[]
public static isValid(string $animation) : bool
 

Return true if it is a valid animation type. Empty string is valid.

© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration