Ecosystem /@supermousejs/labs

TextRing

VERSION2.3.1
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.
fontSize *number12Text size in pixels.
speed *number0.5Rotation speed deg/frame.
color *string'currentColor'Text color used by the SVG ring.
opacity *number1Opacity of the rendered ring container.
className string''Optional CSS class added to the container.
spread booleanfalseStretch the text to fit around the full loop.
supermouse
js
| Copyright © 2024-2026 Stud.io Inc.