mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-15 22:08:03 +00:00
54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
---
|
||
title: "Code Typing"
|
||
description: "Token-streamed typing reveal with a caret that tracks the frontier — deterministic, no CSS animation."
|
||
---
|
||
|
||
`code` `code-animation` `typing` `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-typing.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-typing.png" autoPlay muted loop playsInline />
|
||
|
||
## Add it to a project
|
||
|
||
Ask your agent:
|
||
|
||
```text
|
||
Add the Code Typing block from the HyperFrames Catalog to this project.
|
||
Replace the demo content with mine and match the existing design and timing.
|
||
```
|
||
|
||
Or install it from the project folder:
|
||
|
||
<CodeGroup>
|
||
|
||
```bash Terminal
|
||
npx hyperframes add code-typing
|
||
```
|
||
|
||
</CodeGroup>
|
||
|
||
<Accordion title="Technical details">
|
||
|
||
| Property | Value |
|
||
| --- | --- |
|
||
| Type | Block |
|
||
| Dimensions | 1920×1080 |
|
||
| Duration | 5s |
|
||
|
||
**Installed files**
|
||
|
||
| File | Target | Type |
|
||
| --- | --- | --- |
|
||
| `code-typing.html` | `compositions/code-typing.html` | hyperframes:composition |
|
||
|
||
</Accordion>
|
||
|
||
<Accordion title="HTML for agents and developers">
|
||
|
||
The installed block can be added to a host composition with:
|
||
|
||
```html
|
||
<div data-composition-id="code-typing" data-composition-src="compositions/code-typing.html" data-start="0" data-duration="5" data-track-index="1" data-width="1920" data-height="1080"></div>
|
||
```
|
||
|
||
</Accordion>
|