-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Hello,
I am looking for some assistance on how to use loop: false I set it to true and now I get an error after it loops through my array of text once. The error I get is this:
typed.min.js:1 Uncaught TypeError: Cannot read property 'substr' of undefined
at typed.min.js:1
Am I initializing the loop properly? This is my code its pretty much boilerplate.
document.addEventListener('DOMContentLoaded', function(){
Typed.new('#target-headlines', {
strings:[
'I ',
'Like',
'Eggs',
],
typeSpeed: 30,
fadeOut: true,
fadeOutClass: 'typed-fade-out',
fadeOutDelay: 200, // milliseconds
showCursor: true,
shuffle: true,
loop:true,
});
});
Any help or advice will be greatly appreciated.
Thank you
Metadata
Metadata
Assignees
Labels
No labels