Guys, I don't understand this, using this simple splitText action inside a function, works fine on codepen but locally getting in browser console:
TypeError: undefined is not an object (evaluating 'a.length')
Any ideas? Set up is code in a local .js file correctly linked and working with other animations and html elements in index.html exactly as codepen example.
2 a.m. here so that might have something to do with it, not normally this dense...