Skip to content

Lens Cursor

A glass magnifier that enlarges whatever is underneath it.

Plan
Free · MIT
Dependencies
React only
Props
8 (7 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal. Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal. Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal. Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal. Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal. Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal. Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal. Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal. Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal. Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal. Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal. Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal. Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal. Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal.
Come closer

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
childrenReactNode""Content the lens magnifies (rendered twice: the real one and the one inside the lens).
zoomnumber2.2How much the lens magnifies.
sizenumber176Diameter of the lens, in px.
refractionnumber1Strength of the refraction at the lens edge (0 = light isn't bent).
stiffnessnumber420Stiffness of the spring the lens uses to chase the cursor.
hideCursorbooleantrueHides the system cursor inside the area.
scenebooleanfalseDraws a sheet with tiny text and colored shapes so you can see the magnification.
sceneTextstring"Glass is not a material so much as a state: a liquid that stopped flowing. Passing through it, light bends, and what seemed far away comes closer. A lens is just glass with curvature, and the curvature decides how close the world gets. This magnifier chases the cursor on a spring, enlarges what lies beneath with real text, never pixelating it, and bends light at its rim like true crystal."Text on the sheet (with scene): repeated until it fills it.

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { LensCursor } 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.

Keep exploring

  • A ring that follows the cursor with an elastic lag, stretches with speed and, over anything clickable, morphs into its outline like a soft magnet.

    Cursors

  • The cursor sheds sparks with real physics: they inherit its momentum, fall under gravity, bounce on the floor and cool from white to ember.

    Cursors

  • A dark layer that only reveals hidden content where a flashlight beam points, with warm light, a spring when it opens and a soft falloff.

    Cursors