Hi there!
I'm facing an odd situation when using GSAP in a Parcel project. The animation seems to work fine for the first time I load it, but for any subsequent refreshes of the page the CSS of the target element are not updating, although the tween itself is running ok. This has something to do with the Parcel Cache. I tried starting the project with --no-cache flag but the behavior remains the same.
If I'm changing the content of the <h1> that I'm animating between refreshes, the animation is playing fine (for the first time).
Any ideas of workarounds?
P.S. here is the code
import React from "react";
import { gsap } from "gsap";
export const App = () => {
gsap.fromTo(
"#h1",
{ color: "red" },
{ color: "blue", duration: 2 }
);
return <h1 id="h1">Hello world 12343</h1>;
};