795 B
795 B
@bible-strong/avatar-web
DOM renderer for Bible Strong procedural avatars. It uses @bible-strong/avatar-core for schema
validation, playback and rendering, without requiring React.
pnpm add @bible-strong/avatar-web
import { createAvatar } from '@bible-strong/avatar-web'
import definition from './cloudee.avatar.json'
const avatar = createAvatar('#avatar', {
definition,
defaultAnimation: 'idle',
})
avatar.play('happy')
avatar.pause()
avatar.stop()
For a browser project without a bundler, load an ESM build through an import map or CDN and fetch
the definition JSON before calling createAvatar.
The package follows Semantic Versioning. While it remains below 1.0.0, breaking API changes
increment the minor version and fixes increment the patch version.