Im trying to split a paragraph into lines. Im splitting it twice, so the child div line can slide up like this
I get the error "TypeError: Cannot read property 'nodeType' of null"
I tried with the type being "words" and that works fine, and also with "lines" just one time. That works too. It only seems to break when I try to split it twice.
Any ideas on what Im doing wrong? Its in a vue project if that matters.
Off topic too, but how would one have each class of ".split" have an independent scroll trigger?
const pChild = new SplitText(".split", {
type:"lines",
linesClass:"wordChild"
});
const pParent = new SplitText(".split", {
type:"lines",
linesClass:"wordParent"
});
.wordChild {
overflow: hidden;
}
.wordParent {
display: inline-block;
}