---
title: "Code Diff"
description: "An edit shown as a colored diff — removed lines collapse in red, added lines expand in green."
---
# Code Diff
An edit shown as a colored diff — removed lines collapse in red, added lines expand in green.
`code` `code-animation` `diff` `developer`
## Install
```bash Terminal
npx hyperframes add code-diff
```
## Details
| Property | Value |
| --- | --- |
| Type | Block |
| Dimensions | 1920×1080 |
| Duration | 6s |
## Files
| File | Target | Type |
| --- | --- | --- |
| `code-diff.html` | `compositions/code-diff.html` | hyperframes:composition |
## Usage
After installing, add the block to your host composition:
```html
```