FreeInteraction
Wind Chime
A glass bell that sways with the cursor and chimes when touched. Works as a notification indicator with a counter.
- Plan
- Free · MIT
- Dependencies
- React only
- Props
- 12 (9 adjustable)
Free forever
MIT license, for personal and commercial projects. See installation
3 notifications
Made with Furin: Pill Nav · Metal Button · Copy Morph
Props
| Prop | Type | Default | Description |
|---|---|---|---|
glass | string | "#9ED8FF" | Color of the bell glass. |
paint | string | "#E8452C" | Color of the paint on the bell's rim (and of the number on the strip). |
strip | string | "#FFFFFF" | Color of the paper strip (tanzaku) hanging from the clapper. |
count | number | 0 | Number of notifications shown on the strip (0 leaves it blank); when it goes up, the bell rings on its own. |
sound | boolean | true | If true, the bell rings; if false, it only moves. Audio starts after the user's first interaction. |
volume | number | 0.7 | Volume of the chime, from 0 to 1. |
breeze | number | 0.4 | Strength of the ambient breeze that sways it on its own, from 0 (still) to 1. |
wind | number | 1 | How strongly the cursor's wind pushes it: 0 ignores it, 1 is normal, 2 is a gale. |
size | number | 380 | Bell height in px (the width is computed automatically). |
onRing | (intensity: number) => void | undefined | Called every time it rings, with the strike intensity from 0 to 1. |
className | string | "" | Extra CSS class for the container. |
style | CSSProperties | "{}" | Inline styles for the container. |
Installation
Install it
1Install the package
npm i furin-ui2Import it
import { ChimeBell } from "furin-ui";Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.
Dependencies
- React
- 18 or later
- Other libraries
- none
- License
- MIT
Each file ships its own CSS: there's nothing else to install.