← All demos

Core engine — AniaAvatarCore

No framework at all: the raw imperative API on a bare <canvas> via the AniaAvatarCore UMD global.

● LIVE from CDN cdn.jsdelivr.net/gh/rob-d3v/ania-avatar-core/dist/index.global.js

Running demo

checking…
ℹ️ This calls AniaAvatarCore.createAniaPlayer(canvas, …) directly and binds its events. Paste an avatar URL (+ password) and Load to drive the player imperatively.
cdn integration
<canvas id="ania" width="320" height="320"></canvas>
<script src="https://cdn.jsdelivr.net/gh/rob-d3v/ania-avatar-core/dist/index.global.js"></script>
<script>
  const player = AniaAvatarCore.createAniaPlayer(
    document.getElementById('ania'), { autoplay: true });
  player.on('load', (d) => console.log('frames', d.video.frames.length));
  player.load({ url: 'avatar.ania' /*, password: 'secret' */ });
</script>