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.).
You can see LetterPeople in action on our GitHub Pages demo site.
yarn add letterpeople
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();
# Install dependencies
yarn install
# Start the development server
yarn dev
# Build for production
yarn build
This project is set up with GitHub Pages deployment. See GITHUB-PAGES.md for details.