Ecosystem /@supermousejs/labs

TextRing

VERSION2.4.0
LICENSEMIT
CONFIG8 Options

Rotates text around the cursor position.

Installation

pnpm add @supermousejs/labs

Usage

import { TextRing } from '@supermousejs/labs';

app.use(TextRing({ text: 'LOADING • ', radius: 40 }));

Configuration

* Reactive Property
OptionTypeDefaultDescription
text *string'SUPERMOUSE • SUPERMOUSE • 'Text content.
radius *number60Ring radius in pixels.
fontSize *number12Text size in pixels.
speed *number30Rotation speed in degrees per second.
color *string'currentColor'Text color.
opacity *number1Opacity of the rendered ring container.
className string''Optional CSS class added to the container.
spread booleantrueStretch the text to fit the entire circle using cross-browser letter-spacing.
supermouse
js
| Copyright © 2024-2026 Stud.io Inc.