Options: split
The split option determines how the text on the element will be splitted.
The split option is not taken into consideration when using .applyToElementsSequentially().
split="text" (default)
If you do not specify an split option, the default: split="text" is used. When using split="text" the text of the element is splitted into each character and then a set of span elements are generated for each character. Linebreaks may happen anywhere within the text.
Example
Ghost Town is a 1981 song by the British Two Tone band The Specials.
split="wrapped"
When using split="wrapped" the text is also splitted into spans, however each word is wrapped in another span with white-space: nowrap; and class="gt-word". Because of this, linebreaks respect words.
Example
Ghost Town is a 1981 song by the British Two Tone band The Specials.
split="words"
When using split="words" the text is splitted into words rather than characters.