time-ticker
v0.0.29
Published
Web Component that fires event periodically
Downloads
13
Readme
time-ticker
time-ticker is a non-visible custom element that fires an event periodically.
Uses this library, explained here.
<time-ticker loop repeat="10" duration="200"></time-ticker>
API Reference
Example 1. Based off Text Scramble
time-ticker uses JSON modules, which seem to be wending their way, ever so slowly, into Firefox and Safari.
In the meantime, use the polyfill to accommodate non chromium browsers:
<script type="esms-options">{ "polyfillEnable": ["json-modules"] }</script>
<script async src="https://ga.jspm.io/npm:[email protected]/dist/es-module-shims.js"></script>