-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to split by lines and by characters? #34
Comments
Also, shouldn't the lines plugin divide the words inside .line div's? |
Seems like adding it to depends-List of linePlugin could do that job:
Still, this could / should be an option... |
Currently, it is possible in this way, though it does end up wrapping the words twice:
https://codepen.io/shshaw/pen/04873953a73e6d6dc60ad539a35a26ae Agreed that this should be better supported. Resplitting should also be a little cleaner overall. Making some notes for the next release. Thanks! |
using forEach on the output is actually quite clean, I feel stupid for not thinking about that solution. I'm glad I gave you a use case to think about. Thanks for the answers! |
I believe this might also work and avoid the double wrapping:
but I don't have time to validate it right at this moment. |
I'd also love to do animations by line like letting the line float up but the last part of each line float up later than the first part of the line according to it's index within the line. word-index is 50 but it's 4th on that line. So you can do something like: If these line variables were optionally available, that would be great. By doing it this way, you probably wouldn't need '.word' within a new '.line' class as suggested above. I'm not sure if you would need to do that or not. But --linechar-index and --lineword-index would be easy for users. |
This also seems to strip the space from inside the
This does not remove whitespace, however the (inner) Both do wrap words twice. For me the ideal solution would be to simply be able to run Also, having a |
If it's possible, it should be documented.
Also, in my use-case I would like to be able to have splitting by lines, words and characters working together with whitespace:true OR i would like to have whitespace:true on words plugin (counting whitespace as a word).
Should this be a feature or am I missing something?
Thanks in advance
The text was updated successfully, but these errors were encountered: