1.0.0 • Published 1 year ago

@gwenjo/slidev-addon-typewriter v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Slidev Typewriter Addon

A typewriter text animation addon for Slidev.

Installation

npm install slidev-addon-typewriter
# or
yarn add slidev-addon-typewriter
# or
pnpm add slidev-addon-typewriter

Add the addon to your slides.md:

---
addons:
  - slidev-addon-typewriter
---

Usage

As a Directive

<!-- Basic usage -->
<h1 v-typewriter>This text will type out</h1>

<!-- With custom duration -->
<p v-typewriter="{ duration: 1.5 }">Types out in 1.5 seconds</p>

As a Component

<!-- Basic usage -->
<TypewriterText>This text will type out</TypewriterText>

<!-- With custom duration -->
<TypewriterText :duration="1.5">Types out in 1.5 seconds</TypewriterText>

Options

OptionTypeDefaultDescription
durationnumber2Animation duration in seconds

License

MIT License © 2024

1.0.0

1 year ago