stencil-slot-machine
v0.0.9
Published
A web component compiled with StencilJS to simulate a slot machine spin effect
Downloads
4
Maintainers
Readme
stencil-slot-machine
A web component compiled with StencilJS to simulate a slot machine spin effect
Based on this codepen CSS Slot Machine (transition).
Cloning the repository
$ git clone https://github.com/albertorcf/stencil-slot-machine.git
$ cd stencil-slot-machine/
$ npm install
$ npm start
Using this component
In a stencil-starter app
- Run
npm install stencil-slot-machine --save
- In
src/global/app.ts
add an import to the npm packagesimport stencil-slot-machine;
- Then you can use the element anywhere in your template, JSX, html etc
Understanding the code
See src/index.html for a simple example on how to use the component.