Hero

Vet clinic hero: a CSS pet face follows the cursor, pet switcher

First screen for a clinic or pet shop: on the right a pet photo in a slowly morphing blob that drifts slightly away from the cursor. The “cat / dog / rabbit” switcher crossfades the photo, changes the speech bubble and the headline, and dispatches a window CustomEvent so other blocks can follow. Counters below count up in the viewport.

React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.

What you can change

  • pets: key (cat | dog | rabbit), label, eyebrow, title (*word* — accent), lede, bubble, image, imageAlt; defaultPet
  • primaryLabel, primaryHref, secondaryLabel, secondaryHref
  • stats: value, suffix, label; eventName

Built from

The install command brings these components too. The block only passes them props: their palette and behaviour stay their own.

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme
Vet clinic hero: a CSS pet face follows the cursor, pet switcher — First screen for a clinic or pet shop: on the right a pet photo in a slowly morphing blob that drifts slightly away from the cursor. The “cat / dog / rabbit” switcher crossfades the photo, changes the speech bubble and the headline, and dispatches a window CustomEvent so other blocks can follow. Counters below count up in the viewport.

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.club/c/hero-035?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

How to use

<Hero035
  defaultPet="dog"
  pets={[
    { key: "cat", label: "Cat", eyebrow: "Vet clinic", title: "Treated so gently *the cat won't notice*", lede: "Quiet rooms.", bubble: "Meow.", image: "/photos/cat.webp" },
    { key: "dog", label: "Dog", eyebrow: "Vet clinic", title: "Treated so well *the tail keeps wagging*", lede: "Separate entrance.", bubble: "Woof.", image: "/photos/dog.webp" },
  ]}
  stats={[{ value: 12480, label: "tails treated" }]}
/>

A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.

Settings

Primary button
primaryLabel · default: Book a visit
Secondary button
secondaryLabel · default: What hurts?
Theme
tone · default: auto
Accent
accent · default: theme colour
Ink
ink · default: theme colour
Background
background · default: theme colour

FAQ

How do I add Vet clinic hero: a CSS pet face follows the cursor, pet switcher with Cursor or Claude Code?
Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
What does Vet clinic hero: a CSS pet face follows the cursor, pet switcher depend on?
No npm packages beyond React and Tailwind CSS. It also installs catalog components: button-016.
What can I change in Vet clinic hero: a CSS pet face follows the cursor, pet switcher?
Adapt: pets: key (cat | dog | rabbit), label, eyebrow, title (*word* — accent), lede, bubble, image, imageAlt; defaultPet; primaryLabel, primaryHref, secondaryLabel, secondaryHref; stats: value, suffix, label; eventName. Keep as installed: the button-016 imports from @/components/vibeui/ — do not inline their code into the block or swap in your own; the parts receive props only; the photo parallax is unitless --ex/--ey from −1 to 1, set through a ref on the section's pointermove, no state or re-renders; pet photos are stacked img[data-active] inside face with overflow:hidden and morph keyframes on border-radius; the active one has opacity 1, switching is a .6s transition.
Is Vet clinic hero: a CSS pet face follows the cursor, pet switcher free?
The preview is open to everyone; the source is available with a PRO subscription.

For developers

npx shadcn@latest add https://vibeui.club/r/pro/hero-035.json

This command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options

Technical notes

A composite block: imports button-016 from @/components/vibeui/ — the install command brings them along with the block. The block owns the layout and its own text, passes the parts props only and leaves their --vibeui-<name>-* palettes alone.

Tags

  • hero
  • vet
  • pet
  • cat
  • dog
  • rabbit
  • cursor
  • eyes
  • switcher
  • counter
  • css-illustration
  • playful
  • composite
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…