straversi / Typer.js

Typing effect completely configurable in HTML.
http://steven.codes/typerjs
MIT License
135 stars 23 forks source link

Allow access to typers programmatically #12

Open josephgeis opened 5 years ago

josephgeis commented 5 years ago

By exporting typers in the TyperSetup() method to the window object, created typers can be access elsewhere in JavaScript. I think this would be a beneficial and minor edit that will allow typers to be activated based on scroll position and other developer-created optimizations.

josephgeis commented 5 years ago

Just wondering if you've seen this.

straversi commented 5 years ago

Now I've seen it! I'm revisiting this repo after quite a while.

I've actually been experimenting lately with combining Typer, Cursor, and TyperSetup into a single Typer global object. So I'm in support of revealing the Typers globally, but through an object that can consolidate the other stuff.