npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

slidev-addon-animated-text

v0.3.3

Published

Slidev addon exposing a Tegaki-powered animated text component

Downloads

1,152

Readme

slidev-addon-animated-text

Slidev addon exposing an <animated-text> component powered by Tegaki.

See the example here andreas-taranetz.github.io/slidev-addon-animated-text/

Install

npm i slidev-addon-animated-text

Use In A Deck

Add the addon in your slides.md frontmatter:

---
addons:
  - slidev-addon-animated-text
---

Then use the component directly in your slides:

<animated-text text="Hello World!" />

Built-In Fonts

The component supports the built-in Tegaki font bundles via the font prop:

  • caveat
  • italianno
  • tangerine
  • parisienne

These fonts are bundled with the addon, so they work when slidev-addon-animated-text is installed from another Slidev deck as well.

Example:

<animated-text text="Hello World!" font="italianno" />

You can also register any generated Tegaki font bundle from your own deck and use it through the font prop, or set it as the new default using setDefaultFont:

// setup/main.ts
import { defineAppSetup } from '@slidev/types';
import comicNeueBundle from './comic-neue/bundle.ts';
import { registerFontBundle, setDefaultFont } from 'slidev-addon-animated-text/fontRegistry';

export default defineAppSetup(() => {
  registerFontBundle('comic-neue', comicNeueBundle);
  setDefaultFont('comic-neue');
});
// slides.md
<animated-text text="Hello World"/>

The generated bundle files stay in your Slidev project, for example under ./comic-neue/.

Props

The component exposes the common Tegaki renderer options plus a few addon-level conveniences.

| Prop | Type | Default | Notes | | --- | --- | --- | --- | | text | string | required | Text to render | | font | string | configured default or caveat | Built-in or registered Tegaki font bundle name | | font-bundle | object | undefined | Custom Tegaki font bundle, overrides font | | speed | number | 1 | Simple playback speed control | | loop | boolean | false | Loop the animation | | delay | number | 0 | Delay before animation start in seconds | | time | number \| object | undefined | Advanced Tegaki time control override. Takes precedence over speed, loop, and delay | | effects | object | undefined | Tegaki effects config | | quality | object | { pixelRatio: 2 } | Tegaki quality config. The addon defaults to 2x supersampling for sharper canvas text | | timing | object | undefined | Tegaki timing config | | show-overlay | boolean | false | Shows the text overlay for debugging | | on-complete | function | undefined | Completion callback | | direction | string | undefined | Text direction |

Examples

Explicit font override:

<animated-text text="Hello World this fits" font="comic-neue" />
<h2 style="font-size: 56px; line-height: 1;">
  <animated-text
    text="Fast loop"
    font="tangerine"
    :speed="2"
    :loop="true"
  />
</h2>
<animated-text
  text="Fancy effects"
  font="parisienne"
  :effects="{ glow: { radius: 8, color: '#00ccff' }, gradient: { colors: 'rainbow' } }"
/>

Sharpen or relax Tegaki's canvas rendering quality:

<animated-text
  text="Sharper text"
  :quality="{ pixelRatio: 3 }"
/>

pixelRatio increases the internal canvas resolution. Higher values usually look crisper, but they also cost more GPU/CPU time.

Advanced time override example:

<animated-text
  text="Start late"
  :time="{ mode: 'uncontrolled', initialTime: 0.4, delay: 0.3, speed: 1.2, loop: true }"
/>