# dotLottie React

> Player for Lottie (.json) and compressed .lottie animations exported from After Effects or Lottie Creator.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/dotlottie-react

free

Player for Lottie (.json) and compressed .lottie animations exported from After Effects or Lottie Creator.

by LottieFiles[GitHub](https://github.com/LottieFiles/dotlottie-web)[npm](https://npmjs.com/package/@lottiefiles/dotlottie-react)

[visit](https://lottiefiles.com/dotlottie?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://lottiefiles.com/dotlottie](https://lottiefiles.com/dotlottie?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [Rive](https://tastebase.ehsanulsiam.workers.dev/browse/rive)

Runtime for interactive Rive (.riv) animations with state machines, driven from code.

no preview

### [Torph](https://tastebase.ehsanulsiam.workers.dev/browse/torph)

Animated text morphing: labels change letter by letter instead of swapping.

no preview

### [NumberFlow](https://tastebase.ehsanulsiam.workers.dev/browse/number-flow)

Animated number component: digits roll to the new value, formatted with Intl.NumberFormat.

no preview

### [GSAP SplitText](https://tastebase.ehsanulsiam.workers.dev/browse/gsap-splittext)

Splits text into lines, words and characters (with masks) for staggered reveal animations.

## Looks that pick it

[Tactile 3D](https://tastebase.ehsanulsiam.workers.dev/looks/tactile-3d)[Cartoon](https://tastebase.ehsanulsiam.workers.dev/looks/cartoon)

## For your agent

##### Install

`npm i @lottiefiles/dotlottie-react`

##### Use it for

- a success or empty-state illustration a designer exported as Lottie
- a branded loading animation that already exists as a .lottie file
- marketing illustrations from the LottieFiles library

##### Skip it when

- the animation must react to app state or input beyond play/pause/seek: use rive state machines
- a spinner or progress indicator you could draw in CSS: do not ship a WASM player for it
- you are building the motion yourself: use motion or gsap on real DOM/SVG

##### What's inside13 free

- DotLottieReact
- DotLottieWorkerReact
- dotLottieRefCallback (player instance)
- Custom playback controls
- Events
- Segments
- Named markers
- Multi-animation .lottie files
- Themes
- State machines (interactivity)
- Layout
- setWasmUrl
- setWorkerUrl

##### Facts

**Frameworks**
react, vue, svelte, solid, angular, vanilla

**Styling**
unstyled

**Weight**
large

**Accessibility**
weak

**Maturity**
stable

**License**
MIT

**Price**
Free

##### Alternatives

[Rive](https://tastebase.ehsanulsiam.workers.dev/browse/rive)

```
import { DotLottieReact } from '@lottiefiles/dotlottie-react'

<DotLottieReact src="/success.lottie" autoplay />
```

https://lottiefiles.github.io/dotlottie-web/

Loading website

[Visit](https://lottiefiles.com/dotlottie?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
