letterpeople
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

LetterPeople

LetterPeople is a TypeScript library that creates animated letter characters with facial features. The library renders letters as SVG elements with attachments like eyes and mouths that can be animated (blinking, speaking, etc.).

Demo

You can see LetterPeople in action on our GitHub Pages demo site.

Installation

yarn add letterpeople

Usage

import { createLetter } from 'letterpeople';

// Create a container element
const container = document.createElement('div');
document.body.appendChild(container);

// Create an animated letter
const letterL = createLetter('L', container, {
  color: '#add8e6',
  lineWidth: 25,
  borderColor: '#333333',
  borderWidth: 4,
  mouthParams: {
    openness: 0.1,
    mood: 0.7
  }
});

// Animate the letter
letterL.mouth.animateSpeak();
letterL.eyes.blink();

Development

# Install dependencies
yarn install

# Start the development server
yarn dev

# Build for production
yarn build

GitHub Pages

This project is set up with GitHub Pages deployment. See GITHUB-PAGES.md for details.

Package Sidebar

Install

npm i letterpeople

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

1.44 MB

Total Files

78

Last publish

Collaborators

  • nilock