0.0.1 • Published 8 months ago
@lottiepro-web/dotlottie-vue v0.0.1
@lottiepro-web/dotlottie-vue
Vue components for dotLottie animation format.
Installation
npm install @lottiepro-web/dotlottie-vueUsage
<template>
<div>
<DotLottiePlayer
:src="animationSrc"
:style="{ width: '300px', height: '300px' }"
:autoplay="true"
:loop="true"
/>
</div>
</template>
<script setup lang="ts">
import { DotLottiePlayer } from '@lottiepro-web/dotlottie-vue';
const animationSrc = 'path/to/animation.lottie';
</script>Props
src: Path to the .lottie fileautoplay: Whether to start playing automaticallyloop: Whether to loop the animationspeed: Playback speed (default: 1)theme: Theme to apply (if available)marker: Marker to start from (if available)style: CSS styles for the containerclass: CSS class name for the container
Features
- Vue component wrapper for dotLottie
- Full TypeScript support
- All core functionality available
- Easy to use props interface
License
MIT
0.0.1
8 months ago