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 issue 47 #48

Closed lukePeavey closed 1 year ago

lukePeavey commented 1 year ago

Issue: calling the split method multiple times on an instance causes the html content to be replaced with "undefined" (see #47)

Fix, store the original html content of the target elements at the beginning of the split method, instead of in the constructor.

closes #47