tameemsafi / typewriterjs

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

Pass data attributes to the span element created by the typewriter component #168

Open Fedinjo opened 1 year ago

Fedinjo commented 1 year ago

Hi,

I'm currently using locomotive scroll and in order to give it's effect to an element, the element has to be given data attributes such as "data-scroll", "data-scroll-direction"... Looking at the documentation it doesen't seem that there is a way to pass data attributes to the span element created by the typewriter effect

image