console
var box = document.getElementById("box")
function animate(time) {
requestAnimationFrame(animate);
TWEEN.update(time);
}
requestAnimationFrame(animate);
var coords = { x: 0, y: 0 };
var tween = new TWEEN.Tween(coords)
.to({ x: 300, y: 200 }, 1000)
.easing(TWEEN.Easing.Quadratic.Out)
.onUpdate(function() {
box.style.setProperty('transform', 'translate(' + coords.x + 'px, ' + coords.y + 'px)');
})
.start();
<div id="box" class="box"></div>
.box{
background:yellowgreen;
width:100px;
height:100px;
}