# vue-tinytyper

> A tiny library for creating a typewriter effect on specified text element

Latest version **1.0.0** (published 2018-02-13) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install vue-tinytyper
pnpm add vue-tinytyper
yarn add vue-tinytyper
bun add vue-tinytyper
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-02-13 |
| First published | 2018-02-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 121.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Viktor Pöntinen |
| Maintainers | viktorpontinen |
| Keywords | vue, component, typing, text, effect, cursor, blinking |

## Links

- npm: https://www.npmjs.com/package/vue-tinytyper
- Repository: https://github.com/ViktorPontinen/vue-tinytyper
- Issues: https://github.com/ViktorPontinen/vue-tinytyper/issues
- npm.io page: https://npm.io/package/vue-tinytyper

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-02-13

## README

## VueTinyTyper - a vue component for creating a typing effect element.

#### Credits
This project is forked from https://github.com/lourenc/tinytyper .
Some parts of the readme are also originally from above repository.

#### Why
This project was created because I was missing events in the non-vue version.

#### Demo
Full credits to https://github.com/lourenc/tinytyper
<img align="center" src="https://s28.postimg.org/4qva5c1f1/tinytyper2.gif">

#### Installation
Library can be easily installed via either Yarn or NPM:

`npm i vue-tinytyper --save`

or

`yarn add vue-tinytyper`

#### Usage

Basic setup looks like this:

```js
import VueTinytyper from 'vue-tinytyper';
```
then
```js
<vue-tinytyper text="Hello, please type this out."></vue-tinytyper>
```
or
```js
<vue-tinytyper>Hello, please type this out.</vue-tinytyper>
```

Available `props`:

Prop           | Default      | Type | Description
---------------- | ------------- | ----------- | --------------
`text`           | ``           | String | The text to animate
`textSpeed`      | `95`         | Number | Defines text speed animation
`cursor`         | `&#9612;`   | String | Defines current cursor symbol
`blinkSpeed`     | `0.05`       | Number | Defines blink speed of the cursor
`containerClass` | 'tiny-typer-container'  | String | A CSS class for the container element
`cursorClass`    | `tiny-typer-cursor` | String | A CSS class for cursor element
`textClass`      | `tiny-typer-text` | String | A CSS class for text element
`staticCursor`   | `false` | Boolean | Makes cursor static (disables blinking)
`staticText`     | `false` | Boolean | Makes text static (disables animation)
`customEvents`   | `{}`   | Object  | Pass custom "on-character" events. Example: `{ '!': 'my-event' }`, where the event 'my-event' will be triggered every time the current animation character matches the object key, eg. "!".


Available `events`

Eventname     | Trigger    | Payload
------------- | ---------- | ----------
`animation-finished` | When animation doesn't have any more characters to animate | None

#### Contributions

Contributions are welcome. Feel free to create [issues](https://github.com/ViktorPontinen/vue-tinytyper/issues)

#### License

MIT

---
_Source: https://npm.io/package/vue-tinytyper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
