Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xkrsz/wordsmith.js
JS plugin for writing things. Written in vanilla JavaScript.
https://github.com/xkrsz/wordsmith.js
javascript js-plugin vanilla-javascript wordsmith
Last synced: 8 days ago
JSON representation
JS plugin for writing things. Written in vanilla JavaScript.
- Host: GitHub
- URL: https://github.com/xkrsz/wordsmith.js
- Owner: xkrsz
- Created: 2016-12-17T21:42:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-30T11:31:38.000Z (almost 8 years ago)
- Last Synced: 2024-09-24T21:14:41.673Z (about 2 months ago)
- Topics: javascript, js-plugin, vanilla-javascript, wordsmith
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wordsmith.js
> JS plugin for writing things. Written in vanilla JavaScript.## Usage
```js
const ws = new Wordsmith({
tag: document.getElementById('text'),
typingSpeed: 1.5
})
ws.type(`
This is a text that will be written smoothly inside a specified element.
This will be written one second later.
`)
```### To enable animated cursor add this css
```css
.wordsmith:after {
content: '|';
background-color: #fff;
animation: .5s linear infinite alternate blink
}@keyframes blink {
from {
opacity: 0
}to {
opacity: 1
}
}
```