ason
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by ason
-
-
I'm also using GSAP with npm, and I'm not sure how to set up the SplitText utility. I deploy to Netlify and netlify runs my build command, and installs all of my npm packages. I'm guessing I'll need to include SplitText.js in my file structure, and maybe include it in my package.json somehow? Any pointers would be appreciated!
Alan
React and SplitText
in GSAP
Posted
Thanks! I think I have the import working correctly now. I've included SplitText.js in my utils folder and am just importing like any other file in my project, after other gsap dependencies.
I'm using the "word" split type, but is it possible to have SplitText split based on hairline spaces, as well as regular spaces? I saw that SplitText respects non-breaking spaces, it would be awesome if there was a way to tell it to split on hairline spaces as well!
Thanks for your help!