SmartRing
VERSION2.3.1
LICENSEMIT
CONFIG7 Options
A reactive ring that distorts with velocity and adapts to stuck elements.
Installation
pnpm add @supermousejs/labsUsage
import { SmartRing } from '@supermousejs/labs';
app.use(SmartRing({ size: 24, color: '#f59e0b', enableSkew: true }));Configuration
* Reactive Property| Option | Type | Default | Description |
|---|---|---|---|
| size * | number | 20 | Base diameter. |
| hoverSize * | number | 40 | Diameter on hover. |
| color * | string | '#ffffff' | Border color used for the ring. |
| fill * | string | 'transparent' | Background fill color applied to the ring. |
| borderWidth * | number | 2 | Border thickness in pixels. |
| mixBlendMode | string | 'difference' | CSS mix-blend-mode applied to the ring element. |
| enableSkew | boolean | false | Distort shape based on velocity. |