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 positionnumber speedMultnumber 1 optional -
Starts infinite movement
Name Type Default Description invertboolean false optional speedMultnumber 1 optional -
Changes base speed
Name Type Description speednumber -
Defines the current position and immediately stops movement
Name Type Description valuenumber -
Increase/decrease the target position
Name Type Default Description stepnumber speedMultnumber 1 optional -
Stops movement
-