mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-01 19:42:03 +00:00
54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
---
|
||
title: "Code Scroll To Line"
|
||
description: "The camera scrolls a long file to bring a target line to center and spotlights it — for walking through real modules."
|
||
---
|
||
|
||
`code` `code-animation` `scroll` `developer`
|
||
|
||
<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-scroll.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-scroll.png" autoPlay muted loop playsInline />
|
||
|
||
## Add it to a project
|
||
|
||
### Ask your agent
|
||
|
||
```text
|
||
Add the Code Scroll To Line block from the HyperFrames Catalog to this project.
|
||
Replace the demo content with mine and match the existing design and timing.
|
||
```
|
||
|
||
### Install from the terminal
|
||
|
||
```bash
|
||
npx hyperframes add code-scroll
|
||
```
|
||
|
||
## Details
|
||
|
||
| Property | Value |
|
||
| --- | --- |
|
||
| Type | Block |
|
||
| Dimensions | 1920×1080 |
|
||
| Duration | 6s |
|
||
|
||
**Installed files**
|
||
|
||
| File | Target | Type |
|
||
| --- | --- | --- |
|
||
| `code-scroll.html` | `compositions/code-scroll.html` | hyperframes:composition |
|
||
|
||
## Use it
|
||
|
||
Ask your agent to replace the example content, match the project style, and place the block at the right moment in the video.
|
||
|
||
**Wiring it by hand.** The installed block can be added to a host composition with:
|
||
|
||
```html
|
||
<div data-composition-id="code-scroll" data-composition-src="compositions/code-scroll.html" data-start="0" data-duration="6" data-track-index="1" data-width="1920" data-height="1080"></div>
|
||
```
|
||
|
||
## Related topics
|
||
|
||
- [Browse the complete Catalog](/catalog)
|
||
- [Add assets and Catalog items in Studio](/studio/assets-and-blocks)
|
||
- [Build a richer composition](/go-further)
|