W2P Digital
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by W2P Digital
-
-
Hi,
When I try to splitText a text (by lines) with nested tags, it works correctly.
But when the font size of the nested tag is different than the rest of the text, it doesn't work anymore. The nested tag is wrapped in a line (alone).
I tried to update SplitText to the latest version (0.7.0) but the issue is still there.
Thanks,
Valentin
See the Pen wOvBgY by valentinchevalier (@valentinchevalier) on CodePen
[Bug] SplitText lines and multiple font sizes
in GSAP
Posted
Thank you very much for your explanation about how SplitText works.
It helps me to know that the y-position determines the split. So i try to play with the line-height, inline-block vertical alignement and transform to adjust the position.
Here is what i did to make it works
See the Pen oVNmZy by valentinchevalier (@valentinchevalier) on CodePen