Ritesh Bucha

View Magnifier

Galleries 56

About

A dynamic image magnifier component that creates an interactive zoom effect on hover. Features customizable magnification level, smooth transitions, and responsive behavior for enhanced image viewing experience.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds View Magnifier to your project and fits it to your theme.

Code

How View Magnifier is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Component } from "@/components/ui/view-magnifier";
import Image from "next/image";

export default function DemoOne() {
  return (
    <div className="relative w-full max-w-lg">
      <Component>
        <div className="h-48 w-full bg-red-500">
          <Image src="https://cdn.21st.dev/assets/mirror/18/180aeddb291e9b88372e18a495fc8940f025053a79a261ee1ee9fd6bf1ea3a05.jpg" alt="random" fill className="w-full h-full object-cover" />
        </div>
      </Component>
    </div>
  );
}

Dependencies

More by Ritesh Bucha

View all
  • Magic Cursor

    Magic Cursor

    76
  • Modern Verticle Progress

    Modern Verticle Progress

    40
  • Split Text Effect

    Split Text Effect

    17
  • Pixel Icon

    Pixel Icon

  • Game Of Life

    Game Of Life

More in Galleries

View all
  • Animated Gallery

    Animated Gallery

    1.5K
  • Editorial Collage Hero

    Editorial Collage Hero

    451
  • Thumbnail image viewer

    Thumbnail image viewer

    59
  • Image Gallery

    Image Gallery

    125
  • 3D Parallax Unfurling Gallery

    3D Parallax Unfurling Gallery

    1K
  • Img Sphere

    Img Sphere

    2.1K
  • Folded Card

    Folded Card

    20
  • Elastic Gallery

    Elastic Gallery

    936