Skip to content

Issue using Loop #262

@ptums

Description

@ptums

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions