# M letter 3d swap 1

> Navigation links — letters rotate upward on hover with colour change between faces

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/m-letter-3d-swap-1).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/m-letter-3d-swap-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/m-letter-3d-swap-1-light-456e505d4cc47b38.png
- Registry item: https://ui.cnippet.dev/r/m-letter-3d-swap-1.json
- Categories: letter 3d swap
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/m-letter-3d-swap-1.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/letter-3d-swap`

## Files

### `registry/default/motion-variants/m-letter-3d-swap-1.tsx`

```tsx
"use client";

import { Letter3DSwap } from "@/registry/default/motion/letter-3d-swap";

const links = ["Home", "Work", "About", "Blog", "Contact"];

export default function Letter3DSwapNav() {
  return (
    <div className="flex min-h-50 items-center justify-center px-6">
      <nav className="flex items-center gap-8">
        {links.map((link) => (
          <Letter3DSwap
            as="a"
            frontFaceClassName="text-muted-foreground"
            key={link}
            mainClassName="cursor-pointer text-sm font-medium hover:text-foreground"
            rotateDirection="top"
            secondFaceClassName="text-foreground"
            staggerDuration={0.04}
            transition={{ damping: 28, stiffness: 320, type: "spring" }}
          >
            {link}
          </Letter3DSwap>
        ))}
      </nav>
    </div>
  );
}
```
