I'm having trouble using GSAP in my svelte project for a CV based site. I'm relatively new to both. I understand that svelte has its own animation library but I was wanting to use GSAP for its timeline capabilities. As a test I tried changing the colour of a blue square but couldn't seem to get it to work. It either wouldn't change or wouldn't be there at all. I've installed GSAP as a dependency too. This is the code in my App.svelte:
<script>
import { gsap } from "gsap";
gsap.from(".blue", {color: "#8c0", duration: 1});
</script>
<main>
<div class="blue"></div>
</main>
<style>
.blue {
width: 100px;
height: 100px;
background-color: blue;
}
</style>
I also tried using the from method but have had no luck there either. Any help would be really appreciated.