0.1.11 • Published 5 years ago

vue-typewrite v0.1.11

Weekly downloads
51
License
-
Repository
github
Last release
5 years ago

vue-typewrite npm version

This Vue.js plugin emulates typing in a text.

DEMO

Usage

Installation

npm i vue-typewrite

in your main.js file

import Vue from 'vue';
import Typewriter from 'vue-typewrite';

Vue.use(Typewriter);

In your application

<template>
    <v-type-write text="Hello World!"></v-type-write>
</template>

Configuration

nametypedefaultdescription
textstring - requiredthe text to be typed
typeDelaynumber0time until the text starts typing
typeSpeednumber150time between each char typed in ms
caretColorstring'#101010'color of the caret (any css color)
textColorstring''inheritcolor of the text (any css color)

For multiline texts use \n for now.

example

<v-type-write :text="'Multiline \n is also supported'"></v-type-write>
<v-type-write :typeDelay="150" text="I start typing after 150ms"></v-type-write>

contribute

  • clone this repo
  • npm i
  • npm run serve
  • make changes on new branch
  • update README
  • submit PR

Todo

  • be able to delete text
  • be able to select text
  • be able to loop the writing
  • accept array of textelements
  • render html elements like h1, p etc.
  • emit events
  • customize caret (like underscore, solid, easing)

License

MIT

Copyright © 2019-Present, René Heinen. All rights reserved.

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago