// requires GSAP 3.10.0 or later
// older quickSetter version: https://codepen.io/GreenSock/pen/WNNNBpo
gsap.set(".flair", {xPercent: -50, yPercent: -50});
let xTo = gsap.quickTo(".flair", "x", {duration: 0.6, ease: "power3"}),
yTo = gsap.quickTo(".flair", "y", {duration: 0.6, ease: "power3"});
window.addEventListener("mousemove", e => {
xTo(e.clientX);
yTo(e.clientY);
});
// 💚 This just adds the GSAP link to this pen, don't copy this bit
import { GSAPInfoBar } from "https://codepen.io/GreenSock/pen/vYqpyLg.js"
new GSAPInfoBar({ link: "https://gsap.com/docs/v3/GSAP/gsap.quickTo()/" });
// 💚 Happy tweening!