Skip to content

norvancc/vue-typewritter

Repository files navigation

Typewritter - A typewritter effect for vue3 and typescript Typewritter - A typewritter effect for vue3 and typescript
A typewritter effect for vue3 and typescript

Typewritter - A typewritter effect for vue3 and typescript Typewritter - A typewritter effect for vue3 and typescript Typewritter - A typewritter effect for vue3 and typescript

🚀 Features

  • 📝 Pure string input support
  • Vue component support
  • TSX/JSX grammer support
  • 🔫 Customizable styles for each step
  • 🚀 Each step supports custom speed
  • 🚅 Chain call support

🦄 Usage

<template>
  <div id="typewritter"></div>
</template>
<script setup lang="tsx">
import { Typewriter } from 'vue-typewritter';

const typewriter = new Typewriter('#typewritter');
onMounted(() => {
  nextTick(() => {
    typewriter.setText('Hello World!');
  });
});
</script>

📦 Install

🎩 From v1.0, it works for Vue 2 & 3

npm i vue-typewriter

📄 License

MIT License © 2024-PRESENT Norvan CC