iamsebastn Posted August 13, 2023 Share Posted August 13, 2023 Hey hey, I'm experiencing a strange problem with Splittext. On my upcoming portfolio, I've got a hover-animation, that shows the title of the project once an image is hovered. So far so good. But unfortunately the title behaves strange when it comes to line-breaks while it's animated. (Just as you can see in the picture). Either the text breaks into multiple lines at a point that makes no sense, or it doesn't break at all and ignores the given max-width. Below you can see an example of how I implemented it. https://codesandbox.io/s/splittext-linebreak-6w594d?file=/src/index.js Due I'm pretty new to SplitText I'm hoping that you could help me out and/or I hope you can talk out of the sewing box Thanks @all in advance Link to comment Share on other sites More sharing options...
Solution Toso Posted August 13, 2023 Solution Share Posted August 13, 2023 try this one https://codesandbox.io/s/splittext-linebreak-forked-5vkyvn 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now