BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/motiq/lens-card

Lens Card

motiq/lens-card
FreeComponent

A refraction lens that floats over your own content: everything under the glass magnifies with a chromatic fringe while the background grid physically bends around the rim. A duplicated scaled clone clipped by a moving circle() - no filters, no repaint storms - with a spring-lagged centre that drifts on its own when unattended. Clones are aria-hidden, so AT reads the content once.

Live preview

live · rendered by the registry
Rendered by motiq on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://www.motiq.dev/r/lens-card.json

Source

registry/cursor/lens-card.tsxwww.motiq.dev/r/lens-card.json · first 6 KB
1"use client";
2
3import * as React from "react";
4
5import { cn } from "@/lib/utils";
6import { useReducedMotion, useVisibilityPause } from "@/lib/motiq";
7
8/* -------------------------------------------------------------------------- */
9/* Types */
10/* -------------------------------------------------------------------------- */
11
12export interface LensLag {
13 stiffness: number;
14 damping: number;
15}
16
17export interface LensCardProps extends React.HTMLAttributes<HTMLDivElement> {
18 /** The content under the glass — text, charts, images, code all work. */
19 children: React.ReactNode;
20 /** Lens radius in px. */
21 radius?: number;
22 /** Optical magnification of the clipped clone. */
23 magnification?: number;
24 /** Chromatic fringe offset in px. 0 disables the dispersion layer. */
25 chromatic?: number;
26 /** Follow spring — lower stiffness reads as heavier glass. */
27 lag?: LensLag;
28 /** Draw the canvas grid that physically bends around the lens rim. */
29 gridBend?: boolean;
30 /** Drift the lens on a slow two-frequency orbit when the pointer is away. */
31 idleDrift?: boolean;
32 /** Render the rim highlight ring. */
33 showRing?: boolean;
34 /** Deterministic seed for the idle-drift phase (SSR-stable). */
35 seed?: number;
36 /** Stop the rAF loop when scrolled offscreen or the tab is hidden. */
37 pauseWhenHidden?: boolean;
38 /** Force the static, motion-free variant regardless of system preference. */
39 reducedMotion?: boolean;
40}
41
42/* -------------------------------------------------------------------------- */
43/* Physics */
44/* -------------------------------------------------------------------------- */
45
46interface Spring {
47 x: number;
48 v: number;
49}
50
51const mkSpring = (x = 0): Spring => ({ x, v: 0 });
52
53/** Semi-implicit Euler spring with substeps — stable at low/irregular frame rates. */
54function spring(s: Spring, target: number, k: number, c: number, dt: number): number {
55 const n = dt > 0.012 ? Math.ceil(dt / 0.008) : 1;
56 const h = dt / n;
57 for (let i = 0; i < n; i++) {
58 s.v += (-k * (s.x - target) - c * s.v) * h;
59 s.x += s.v * h;
60 }
61 return s.x;
62}
63
64const clamp = (v: number, a: number, b: number) => (v < a ? a : v > b ? b : v);
65
66/** mulberry32 — no Math.random at render or module scope (SSR-stable). */
67function makeRng(seed: number) {
68 let a = seed >>> 0;
69 return () => {
70 a = (a + 0x6d2b79f5) | 0;
71// … truncated

What it pulls in

Other registry items

  • https://motiq.dev/r/utils.json
  • https://motiq.dev/r/primitives.json

Files it writes

  • registry/cursor/lens-card.tsx

Facts

Registry
motiq
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

Docs on motiq www.motiq.dev RMahammad/motiq on GitHub Raw registry item This item as JSON

More from motiq

All 100 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Activity Streamactivity-streammotiqComponentsFree1 dep
Adaptive Safe-Zone Gridadaptive-safe-zone-gridmotiqComponentsFreeno deps
Agent Run Timelineagent-run-timelinemotiqComponentsFree1 dep
AI Response Streamai-response-streammotiqComponentsFree1 dep
Animated Accordionanimated-accordionmotiqComponentsFree2 deps
Animated Buttonanimated-buttonmotiqComponentsFree1 dep
Animated Dialoganimated-dialogmotiqComponentsFree2 deps
Animated Gridanimated-gridmotiqComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex