sombrilla Posted June 14, 2024 Posted June 14, 2024 Hello everyone! I'm currently struggling with keeping multiple <br> on a SplitText. With a single <br> it works fine, it creates a new div for each line, when I try to add multiple the same thing happens but no space is created for each subsequent <br>, in this case I need the <br>s to keep its space so that when I revert it, it doesn't jump. I've tried with reduceWhiteSpace: false, but same issue. Thank you for your time! Minimal reproduction: See the Pen OJYOooJ by sombrilla (@sombrilla) on CodePen.
sombrilla Posted June 15, 2024 Author Posted June 15, 2024 For anyone wondering I worked around this by replacing <br> tags with a custom <span> that simulates a <br> based on this solution. Codepen: See the Pen jOoYyqp by sombrilla (@sombrilla) on CodePen. 2
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