Code Diff is a terminal style diff viewer with syntax highlighted additions and deletions, a staggered line by line reveal animation, and a working copy button. It runs on a loop, so it works both as a live demo and as an ambient visual in a hero section. Built with React and Tailwind CSS. Suits changelog pages, code review tool marketing, and CI product screenshots.
Installation
Copy and paste the following code into your project.
Unlock the full library
Get all pro blocks, components & illustrations, and production-ready Next.js + Tailwind templates.
Update the import paths to match your project setup.
Related blocks
- Mockup: Analog Clock
A live-ticking analog clock face with metallic bezel, glass sheen, and smooth-sweep hands driven by system time.
- Mockup: Clerk Bento
A Clerk.com-inspired authentication bento grid — 11 hover-gated mockup cards arranged in a 3×4 bento layout with a wide API keys + CLI bottom row.
- Mockup: Collab Cursors
Two named multiplayer cursors wandering a shared canvas on independent timelines, each selecting different shapes.
- Mockup: Command Palette
A simulated cursor opening a command palette, typing a query, and picking a result on a GSAP loop.
