Jump to content
Search Community

Using SplitText Plugin in React Gatsby

Mauro.ie31 test
Moderator Tag

Recommended Posts

Hi everyone,

I'm trying to import plugin Split Text in my React Gatsby Application.

So I installed gsap via npm and I don't have problems with other plugins but I really can't register SplitText.

I'm trying to import as this: 

 

import { gsap } from "gsap";
import { SplitText } from "gsap/SplitText";



But i'm getting this error: 'Can't resolve 'gsap/SplitText' 

If you're trying to use a package make sure that 'gsap/SplitText' is installed.

I've really lost lot of time.

Thanks

Link to comment
Share on other sites

Welcome to the forums, @Mauro.ie31. SplitText isn't in the public downloads or NPM repo because it's a membership benefit of Club GreenSock. Once you sign up ("Shockingly Green" or higher), you'll get it in your zip download or you can use our private NPM repo (access details are in your account dashboard once you sign up). 

 

https://greensock.com/club

 

Happy tweening!

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...