Jump to content
Search Community

Weird Splittext Behavior

iamsebastn test
Moderator Tag

Go to solution Solved by Toso,

Recommended Posts

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 :D

Thanks @all in advance

image.thumb.png.25e3469f094b9c72310162720d2ebe9f.png

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...