mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-15 22:08:03 +00:00
48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
---
|
|
title: "Blend Difference"
|
|
description: "Auto-inverting text using mix-blend-mode: difference — flips between white and black per-pixel against the background"
|
|
---
|
|
|
|
`text` `text-effect` `effect` `blend-mode` `contrast` `inversion`
|
|
|
|
<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/components/caption-blend-difference.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/caption-blend-difference.png" autoPlay muted loop playsInline />
|
|
|
|
## Add it to a project
|
|
|
|
Ask your agent:
|
|
|
|
```text
|
|
Add the Blend Difference component 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 caption-blend-difference
|
|
```
|
|
|
|
</CodeGroup>
|
|
|
|
<Accordion title="Technical details">
|
|
|
|
| Property | Value |
|
|
| --- | --- |
|
|
| Type | Component |
|
|
|
|
**Installed files**
|
|
|
|
| File | Target | Type |
|
|
| --- | --- | --- |
|
|
| `caption-blend-difference.html` | `compositions/components/caption-blend-difference.html` | hyperframes:snippet |
|
|
|
|
</Accordion>
|
|
|
|
<Accordion title="Instructions for agents and developers">
|
|
|
|
Open `compositions/components/caption-blend-difference.html` and paste its contents into your composition. The comment header in that file contains any item-specific instructions.
|
|
|
|
</Accordion>
|