Jump to content
Search Community

fandy

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

fandy's Achievements

0

Reputation

  1. I would like to use GSAP for one small logo animation on the landing page for a paid SaaS. Would that require the enterprise license, or would it not, since the landing page is the only place I am using it, and it is not paywalled?
  2. I'm getting this error when using the morph plugin: ./components/Logo/index.tsx:3:0 Module not found: Can't resolve 'gsap/MorphSVGPlugin' 1 | import { useEffect } from "react"; 2 | import gsap from "gsap"; > 3 | import MorphSVGPlugin from "gsap/MorphSVGPlugin"; 4 | import SVG from "react-inlinesvg"; 5 | 6 | export const Logo = () => { Here is how I'm using the library: import { useEffect } from "react"; import gsap from "gsap"; import MorphSVGPlugin from "gsap/MorphSVGPlugin"; import SVG from "react-inlinesvg"; export const Logo = () => { useEffect(() => { gsap.registerPlugin(MorphSVGPlugin); gsap.to("#chat-logo", { morphSVG: "#main-logo" }); }, []); return ( <> <SVG src="/branding/logo-chat.svg" id="chat-logo" /> <SVG src="/branding/logo.svg" id="main-logo" /> </> ); }; Any reason why this is the case? I can't for the life of me figure out why considering all the TS definitei
×
×
  • Create New...