Jump to content
Search Community

Text animation does not work in Gulp 4

samodurow test
Moderator Tag

Recommended Posts

Hi @samodurow and welcome to the GreenSock forums!

 

Sorry to hear about the issues. The only reason I can think of is that, since you mention that other GSAP animations work after the build process, maybe the library you're using for creating the splitted text is being loaded after GSAP and your custom JS code. Do you have any console errors regarding that? Do you see any warnings telling you that a specific target can't be found? Can you confirm in your build app that the library actually exists and that is doing it's job before GSAP animates the results? You might want to run a few console.log() methods in order to check all that.

 

Unfortunately the codepen doesn't tell us what could be the problem.

 

Sorry I can't be of more assistance.

Happy Tweening!

Link to comment
Share on other sites

The only other thing I can think of is if in your "real" project, the characters that you're animating are display: inline because most browsers won't render transforms on display: inline elements. You've gotta make them inline-block like you did in the CodePen. Like Rodrigo said, it's super difficult to troubleshoot blind. If you can provide a minimal demo that clearly illustrates the problem, I'm sure we'd be able to figure it out. 

Link to comment
Share on other sites

Thank you for responding and wanting to help. I understand that it's hard to do this blindly, but I thought maybe the problem is common and there are suggestions. 

In the end, I figured it out and it was easy. Just spliting connected after gsap, in my gulp.

Thanks again.

  • Like 1
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...