Density Lens

Density Lens: An interactive floating lens that tracks pointer movement to reveal high-density data, magnified details, or alternative views. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Density Lens

npx motion-ui-skill add density-lens

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Source files

Density Lens

An interactive floating lens that tracks pointer movement to reveal high-density data, magnified details, or alternative views.

Install

npx motion-ui-skill add density-lens

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { DensityLens as DensityLens } from "@/components/craft/density-lens";

export function Example() {
  return (
    <div className="p-6">
      <DensityLens />
    </div>
  );
}

Browse this category