xxxxxxxxxx
var ball;
function setup() {
createCanvas(windowWidth, windowHeight);
ball = {
x: width / 8,
y: height / 2,
}
gsap.to(ball, {
x: width - width / 8,
y: height / 2,
duration: 3,
delay: 1,
ease: "expo.inOut",
});
}
function draw() {
background(0);
noStroke();
fill(255);
circle(ball.x, ball.y, 100);
}