0.1.3 • Published 4 years ago
x-typing-text v0.1.3
Typing Text Webcomponent
Installation
npm i x-typing-text
or, import in HTML file
<script type="module" src="https://unpkg.com/x-typing-text/dist/x-typing-text/x-typing-text.esm.js"></script>
<script nomodule src="https://unpkg.com/x-typing-text/dist/x-typing-text/x-typing-text.js"></script>
Usage
<x-typing-text text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut"
waiting-time="250"
delay="1000">
</x-typing-text>
Properties
Property | type | Description | Default |
---|---|---|---|
text | string | The text who will be typing | |
waiting-time | number | The delay between each characters | 500 |
delay | number | The delay to start typing | 0 |
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
M.I.T