ANIMATION > ANIMATABLE PROPERTIES
JS Object Properties
Animate properties of a plain JS object.
JS Object example
JavaScript
const
$
=
animal
;
const
obj
=
{
score
:
0
}
;
$
(
obj
)
.
animate
(
{
score
:
1000
,
update
:
()
=>
updateUI(Math.round(obj.score))
}
)
;
Score:
0
REPLAY