πHow to add a GSAP animation
Add GSAP animations to your Webstudio site with custom code.
Last updated
Was this helpful?
Was this helpful?
<script defer src="https://cdn.jsdelivr.net/npm/gsap@3.12.5/dist/gsap.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/gsap@3.12.5/dist/Flip.min.js"></script>
<script type="module">
gsap.registerPlugin(Flip);
gsap.fromTo(".animation", {opacity: 0}, {
opacity: 1,
duration: 1,
stagger: 0.1,
ease: "power2.inOut"
});
</script>