Represents a variable that can dynamically change with time (using requestAnimationFrame)
Name | Type | Default | Description |
---|---|---|---|
fn |
function |
optional
Callback function |
|
defaultValue |
number | 0 |
optional
Default position |
min |
number |
optional
Minimum position |
|
max |
number |
optional
Maximum position |
|
loopValue |
boolean | false |
optional
Loop value between min and max |
Members
Methods
-
Defines the target position
Name Type Default Description position
number speedMult
number 1 optional -
Starts infinite movement
Name Type Default Description invert
boolean false optional speedMult
number 1 optional -
Changes base speed
Name Type Description speed
number -
Defines the current position and immediately stops movement
Name Type Description value
number -
Increase/decrease the target position
Name Type Default Description step
number speedMult
number 1 optional -
Stops movement
-