0.1.0 • Published 5 years ago
blink-blink v0.1.0
Stencil blink component
This project provides a blink-blink
component to use in your Geocities 18.0 applications.
Using blink-blink
blink-blink
works like old, dead blink
but... working. New browsers have killed this basic functionality. Shame on them.
You just install it and use it as a normal webcomponent (to be checked):
<p>
Schrodinger's cat is <blink-blink>not </blink-blink> dead.
<p>
By default, the cat will be 1 second alive, 1 second dead. If you want it to change state faster (you might be a faster killer-necromancer, after all), then just:
<p>
Schrodinger's cat is <blink-blink interval="500">not </blink-blink> dead.
<p>
Script tag
- Publish to NPM
- Put a script tag similar to this
<script src='https://unpkg.com/my-component@0.0.1/dist/mycomponent.js'></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
Node Modules
- Run
npm install my-component --save
- Put a script tag similar to this
<script src='node_modules/my-component/dist/mycomponent.js'></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
In a stencil-starter app
- Run
npm install my-component --save
- Add an import to the npm packages
import my-component;
- Then you can use the element anywhere in your template, JSX, html etc