typew
v0.0.2
Published
**An intuitive typewriter effect for your Svelte applications**
Downloads
5
Readme
typew
An intuitive typewriter effect for your Svelte applications
STATUS: working alpha!
Install: npm i typew
Components:
- Typewriter.svelte: A wrapper with play control
- Text.svelte: Used for content that will be cycled through.
- Wait.svelte: A buffer between Text
- Set.svelte: Change the speed for the rest of components (not implemented).
Usage:
<script>
import {
Typewriter,
Text,
Set,
Wait
} from "typew";
</script>
<main>
<Typewriter autoplay loop>
<Text content="Hello" />
<Wait duration={1000} />
<Text content="World" />
</Typewriter>
</main>