alexmacarthur / typeit

The most versatile JavaScript typewriter effect library on the planet.
https://typeitjs.com
GNU General Public License v3.0
3.08k stars 200 forks source link

Typing gets stuck when the & character is used #136

Closed dimitrisscript closed 5 years ago

dimitrisscript commented 5 years ago

Here is a non-working example :)

https://jsfiddle.net/dimitrisscript/bz0a61d3/2/

and the code:

new TypeIt('.typing', {
    speed: 80,
    startDelay: 900,
    loop: true
})
.type('ENTREPRENEURSHIP')
.pause(500)
.delete()
.pause(50)
.type('ICT RESEARCH & INNOVATION')
.pause(500)
.delete()
.pause(50)
.type('SMES')
.pause(500)
.delete()
.pause(50)
.type('SOCIETY')
.pause(500)
.delete()
.pause(50)
.type('ENVIRONMENT & CLIMATE ACTION')
.pause(500)
.delete()
.pause(50)
.type('AGRICULTURE')
.pause(500)
.delete()
.pause(50)
.type('ENERGY')
.go();
alexmacarthur commented 5 years ago

Thanks for reporting! I'll have this addressed by the end of the week.

alexmacarthur commented 5 years ago

@dimitrisscript Thanks again for reporting this! v.6.0.2 addresses the issue. I've tested it with your code snippet and verified with what you provided me too.