Jump to content
Search Community

ason

Members
  • Posts

    2
  • Joined

  • Last visited

ason's Achievements

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. ason

    React and SplitText

    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!
  2. ason

    React and SplitText

    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
×
×
  • Create New...