Split parameters
Defines the CSS class, wrap behavior, or clone type of a split.
Parameters are configured by passing an object to the lines
, words
, and chars
properties.
text.split(target, {
lines: true,
words: {
┌──────────────────────┐
│ wrap: 'clip', │
│ class: 'split-word', ├─ Split Parameters
│ clone: true │
└──────────────────────┘
},
includeSpaces: true,
debug: true,
});
In this section