sirhclluk Posted August 17, 2022 Share Posted August 17, 2022 I've been having issues recently using splittext in banners. The issue is the text isn't always breaking at the <br>. Not so much an issue with Chrome, but still randomly happens. I see the info on this page https://greensock.com/docs/v3/Plugins/SplitText at Notes & limitations, but maybe you could help me more here. Is there an issue where I have these placed? My links to google fonts are pasted just before the end of the </head> My links to js files are just before the end of the </body> <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.10.4/gsap.min.js"></script> <script src="js/SplitText.min.js"></script> <script src="js/greensock_Animations.js"></script> Thanks Chris See the Pen VwXqajR by sirhclluk (@sirhclluk) on CodePen Link to comment Share on other sites More sharing options...
SteveS Posted August 17, 2022 Share Posted August 17, 2022 Your example seems to work as intended. Link to comment Share on other sites More sharing options...
sirhclluk Posted August 17, 2022 Author Share Posted August 17, 2022 Yes, but this is just an example. Do you see any issues with how it is set up, that could cause the <br> to not work? Link to comment Share on other sites More sharing options...
SteveS Posted August 17, 2022 Share Posted August 17, 2022 Looks fine as far as I can tell. I find that splitting by words can solve some problems even if you aren't using them for anything. 1 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