Getting Started

Introduction

DotLottieSvelte is a Svelte component that allows you to easily embed Lottie animations in your Svelte applications. It is a wrapper around the dotLottie-web library.

Installation

Terminal window
npm install @lottiefiles/dotlottie-svelte

Basic Usage

<script lang="ts">
import { DotLottieSvelte } from '@lottiefiles/dotlottie-svelte';
</script>
<DotLottieSvelte
src="path/to/animation.lottie"
loop
autoplay
/>