---
title: "Star rating animated icon"
description: "Star rating animated icon (Gamification & rewards). Select: the star rocks and the second and third rating dots fill in sequence. Light uses a 5-degree acknowledgement. Strong winds back and turns 16 degrees before settling. Reverse clears the dots in the opposite order and rocks left."
canonical: https://generativeicons.com/icons/star-rating/
---

# Star rating animated icon

Select: the star rocks and the second and third rating dots fill in sequence. Light uses a 5-degree acknowledgement. Strong winds back and turns 16 degrees before settling. Reverse clears the dots in the opposite order and rocks left.

- Id: `star-rating`
- Category: Gamification & rewards
- Search terms: rate, rate us, rate this, review, reviews, stars, five stars, 5 stars, feedback, satisfaction, product rating, user rating
- Two states: one-star to three-stars, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/star-rating.lottie (dotLottie, 9495 bytes, sha256 ae407f63507db933910b69472206af5dcf2b2df78a8b662d1a2b794c4638755f)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add star-rating
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/star-rating.mjs';

export function StarRatingIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/star-rating.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/star-rating/ · https://generativeicons.com/api/icons/star-rating
