#gsap
View Compiled
#gsap {
width: 20vmin;
height: 20vmin;
background: #f0f;
top: 0;
left: 0;
border-radius: 10px;
}
View Compiled
gsap.to("#gsap", {
duration: 5,
scale: 3,
x: "50vmin",
y: "50vmin",
backgroundColor: "#7B1FA2",
rotation: 180,
borderRadius: "50%",
ease: "power4.inOut",
stagger: 10,
repeat: -1,
yoyo: true
})
View Compiled
This Pen doesn't use any external CSS resources.