Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
}
}
```