<div class="box box1"></div>
.box {
width: 100px;
height: 100px;
margin: 10px 0;
}
.box1 {
background: royalblue;
}
let tl = gsap.timeline({
defaults: {
duration: 2
}
});
tl.to('.box1', {x: 200})
.to('.box1', {y: 200})
.to('.box1', {x: 100})
This Pen doesn't use any external CSS resources.