⌨️ Lightweight $.Hypertext.Typewriter

318
58
JavaScript

GitHub release (latest by date) jsDelivr hits (GitHub) GitHub GitHub issues GitHub issues



$.t.js

⚠️ iOS 13.3 note (April 2020)

beep[:true] freezes the typewriter, read more: issue #11

Nice features 👌

  • full HTML support
  • beep-beep
  • Hypertypin’ Markup Language (HTyML):
    • deleting (<del>)
    • mistyping (<kbd> — optimized for en and de layouts)
    • delaying (numeric-filled <ins>)
    • instant inserts (non-numeric <ins>)
    • typing speed change (numeric-filled <s>)

Docs/demos

Latest changes

v  
1.5.6 multiline <del> fix
1.5.5 .t_off() fix
1.5.4 added queued type processing ($(elm).t('queue',content) / $(elm).q(content))
1.5.3 added .t_off([true]) method to destroy typer’s instance
1.5.1 added typing-speed-change at runtime: <s> / $(elm).s(ms)
1.3.1 pause_on_tab_switch minor fix: keep previously paused $(elm) paused if window/tab is reactivated
1.3 added pause_on_tab_switch setting (Page Visibility API)
1.2 beep-relevant AudioContext fix (Safari-required webkit prefix)

💾 Font recommendations


CDNhttps://cdn.jsdelivr.net/gh/mntn-dev/t.js/t.min.js

LicenseMIT <https://mit-license.org/>