Animation extends Base
Table of Contents
Constants
- TARGET_BLOCK = 'block'
- Apply animation for block that triggered the action
- TARGET_ITEM = 'item'
- Apply animation for whole timeline item
- TYPE_DISABLE = 'disable'
- Disable animated target
- TYPE_LOADER = 'loader'
- Show loader on animated target
Methods
- __construct() : mixed
- disableBlock() : self
- disableItem() : self
- getTarget() : string
- getType() : string
- isForever() : bool
- setForever() : self
- Do not stop animation till timeline item is updated with a push
- setTarget() : self
- setType() : self
- showLoaderForBlock() : self
- showLoaderForItem() : self
- toArray() : array<string|int, mixed>
Constants
TARGET_BLOCK
Apply animation for block that triggered the action
public
mixed
TARGET_BLOCK
= 'block'
TARGET_ITEM
Apply animation for whole timeline item
public
mixed
TARGET_ITEM
= 'item'
TYPE_DISABLE
Disable animated target
public
mixed
TYPE_DISABLE
= 'disable'
TYPE_LOADER
Show loader on animated target
public
mixed
TYPE_LOADER
= 'loader'
Methods
__construct()
public
__construct(string $target, string $type) : mixed
Parameters
- $target : string
- $type : string
disableBlock()
public
static disableBlock() : self
Return values
selfdisableItem()
public
static disableItem() : self
Return values
selfgetTarget()
public
getTarget() : string
Return values
stringgetType()
public
getType() : string
Return values
stringisForever()
public
isForever() : bool
Return values
boolsetForever()
Do not stop animation till timeline item is updated with a push
public
setForever([bool $forever = true ]) : self
Parameters
- $forever : bool = true
Return values
selfsetTarget()
public
setTarget(string $target) : self
Parameters
- $target : string
Return values
selfsetType()
public
setType(string $type) : self
Parameters
- $type : string
Return values
selfshowLoaderForBlock()
public
static showLoaderForBlock() : self
Return values
selfshowLoaderForItem()
public
static showLoaderForItem() : self
Return values
selftoArray()
public
toArray() : array<string|int, mixed>