lukePeavey / SplitType

Javascript utility that splits text into lines, words, characters for animation
https://lukepeavey.github.io/SplitType/
545 stars 39 forks source link

Fix: not working when target element contains comment nodes #37

Closed lukePeavey closed 2 years ago

lukePeavey commented 2 years ago

Fix: Splitting text does not work as expected when target elements contain comment nodes. This resulted in empty word and line elements in the split text, and unexpected white space (caused by empty word elements).

Changes: