Check out the Flappy Bird project for a use of tween.js:
https://playcanvas.com/project/375389/overview/flappy-bird
Tween.js is here:
https://playcanvas.com/editor/code/375389/tweenlib.js
It was taken from here:
It’s added to the Script Priority dialog to ensure it’s loaded first. I then wrote a tween.js script to apply to entities:
https://playcanvas.com/editor/code/375389/tween.js
This creates the following UI on an entity’s script component:
I use it to tween the scoreboard onto the screen when it’s Game Over. Works pretty well.
To fire that particular tween, I just do the following in script:
app.fire('ui:showscoreboard');