Hover Img

Hover Img: Floating image preview that tracks cursor position on link hover. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Hover Img

npx motion-ui-skill add hover-img

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

Dependencies

  • clsx
  • gsap
  • react
  • tailwind-merge

Source files

Hover Img

Component from Motion UI: hover-img

Install

npx motion-ui-skill add hover-img

Dependencies

  • clsx
  • gsap
  • react
  • tailwind-merge

Usage

"use client";

import { HoverImg as HoverImg } from "@/components/craft/hover-img";

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

Browse this category