tameemsafi / typewriterjs

A simple yet powerful native javascript plugin for a cool typewriter effect.
https://www.npmjs.com/package/typewriter-effect
MIT License
2.5k stars 223 forks source link

Using icons e.g. fontawesome #42

Closed magicmb closed 5 years ago

magicmb commented 5 years ago

We're able to use fontawesome icons in TypewriterJS, which is absolutely fab, however any text after the icon is not displayed for some reason

e.g.

.typeString('We think TypewriterJS is just fab and <i class="far fa-heart"></i> all the features and options')

will render

We think TypewriterJS is just fab and ♡

and omit "all the features and options"

​ PS using CDN: unpkg.com/typewriter-effect/dist/core.js

tameemsafi commented 5 years ago

It is fixed now with the latest version

Example: https://jsfiddle.net/rx6pg9ky/