tameemsafi / typewriterjs

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

Font Size for style wrapper not working #210

Open JoshMosher opened 11 months ago

JoshMosher commented 11 months ago

Hi,

Not sure if I'm correctly doing this in ReactJS, but when setting the wrapperClassName to this:

.TypeWriter { color: #1F6BFF; font-family:'Space Mono'; font-size:'80px' }

The color and font-family is working properly, but not the font-size property.

Here is my inline call to the component for debugging purposes: <Typewriter className='TypeWriter' options={{ strings: ['0', '1', '2'], skipAddStyles: true, autoStart: true, loop: true, wrapperClassName: 'TypeWriter', cursor: '|',cursorClassName:'TypeWriter'}}/>

Thanks, Josh