@petx/svelte
v0.1.0
Published
Svelte component for rendering animated Codex pet spritesheets.
Maintainers
Readme
@petx/svelte
Svelte renderer for animated Codex pet spritesheets.
npm i @petx/svelte<script lang="ts">
import PetX from '@petx/svelte';
import '@petx/svelte/styles.css';
</script>
<PetX src="/pets/frieren/spritesheet.webp" animation="jumping" size={192} />Use animation, frame, playing, frameInterval, atlas, animations, offsetX, and offsetY to tune playback and alignment.
