Skip to content

Commit 06e4db8

Browse files
Merge pull request #1036 from heygen-com/feat/registry-parallax-zoom-unzoom
feat(registry): add parallax-zoom and parallax-unzoom components
2 parents 258bd62 + 618ac7f commit 06e4db8

26 files changed

Lines changed: 1118 additions & 132 deletions

docs/catalog/blocks/spain-map.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
title: "Spain Map"
3-
description: "Animated Spain choropleth by autonomous community with staggered reveals and gradient legend"
3+
description: "Animated Spain choropleth by autonomous community with staggered reveals and gradient legend — D3 conic conformal projection"
44
---
55

66
# Spain Map
77

8-
Animated Spain choropleth by autonomous community with staggered reveals and gradient legend — D3 conic conformal projection with GSAP timeline. GDP per capita data with warm red-to-amber color scale.
8+
Animated Spain choropleth by autonomous community with staggered reveals and gradient legend — D3 conic conformal projection
99

1010
`data` `map` `geography` `spain` `europe` `choropleth`
1111

12-
<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/spain-map.mp4?v=1779081476" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/spain-map.png" autoPlay muted loop playsInline />
12+
<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/spain-map.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/spain-map.png" autoPlay muted loop playsInline />
1313

1414
## Install
1515

docs/catalog/blocks/us-map-bubble.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
title: "US Bubble Map"
3-
description: "Animated US bubble map with proportional city markers, value callouts, and connection lines"
3+
description: "Animated US bubble map with proportional city markers, value callouts, and connection lines — composable with us-map"
44
---
55

66
# US Bubble Map
77

8-
Animated US bubble map with proportional city markers, value callouts, and connection lines — composable with `us-map` for layered data visualizations.
8+
Animated US bubble map with proportional city markers, value callouts, and connection lines — composable with us-map
99

1010
`data` `map` `geography` `usa` `bubble` `cities`
1111

12-
<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/us-map-bubble.mp4?v=1779081476" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-bubble.png" autoPlay muted loop playsInline />
12+
<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/us-map-bubble.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-bubble.png" autoPlay muted loop playsInline />
1313

1414
## Install
1515

docs/catalog/blocks/us-map-flow.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ description: "Animated connection arcs between US cities over a base map — com
55

66
# US Flow Map
77

8-
Animated connection arcs between US cities over a base map — composable origin-destination flow visualization with traveling particles and GSAP-drawn Bezier arcs.
8+
Animated connection arcs between US cities over a base map — composable origin-destination flow visualization
99

1010
`data` `map` `geography` `usa` `flow` `connections` `arcs`
1111

12-
<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/us-map-flow.mp4?v=1779081476" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-flow.png" autoPlay muted loop playsInline />
12+
<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/us-map-flow.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-flow.png" autoPlay muted loop playsInline />
1313

1414
## Install
1515

docs/catalog/blocks/us-map-hex.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ description: "Animated hexagonal tile grid map — each state as an equal-weight
55

66
# US Hex Grid Map
77

8-
Animated hexagonal tile grid map — each state as an equal-weight hex with data fill and abbreviation label. No external dependencies beyond GSAP.
8+
Animated hexagonal tile grid map — each state as an equal-weight hex with data fill and abbreviation label
99

1010
`data` `map` `geography` `usa` `hexgrid` `tilegrid`
1111

12-
<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/us-map-hex.mp4?v=1779081476" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-hex.png" autoPlay muted loop playsInline />
12+
<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/us-map-hex.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-hex.png" autoPlay muted loop playsInline />
1313

1414
## Install
1515

docs/catalog/blocks/us-map.mdx

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
title: "US Map"
3-
description: "Animated US choropleth map with staggered state reveals, value labels, and gradient legend"
3+
description: "Animated US choropleth map with staggered state reveals, value labels, and gradient legend — pure inline SVG with GSAP"
44
---
55

66
# US Map
77

8-
Animated US choropleth map with staggered state reveals, value labels, and gradient legend — D3 geoAlbersUsa projection with GSAP timeline.
8+
Animated US choropleth map with staggered state reveals, value labels, and gradient legend — pure inline SVG with GSAP
99

1010
`data` `map` `geography` `usa` `choropleth`
1111

12-
<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/us-map-v1779081660.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map.png" autoPlay muted loop playsInline />
12+
<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/us-map.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map.png" autoPlay muted loop playsInline />
1313

1414
## Install
1515

@@ -42,12 +42,3 @@ After installing, add the block to your host composition:
4242
```html
4343
<div data-composition-id="us-map" data-composition-src="compositions/us-map.html" data-start="0" data-duration="12" data-track-index="1" data-width="1920" data-height="1080"></div>
4444
```
45-
46-
## Composability
47-
48-
Layer `us-map-bubble` or `us-map-flow` on top of this block as a higher track index to combine choropleth + bubble or flow visualizations:
49-
50-
```html
51-
<div data-composition-id="us-map" data-composition-src="compositions/us-map.html" data-start="0" data-duration="12" data-track-index="1" data-width="1920" data-height="1080"></div>
52-
<div data-composition-id="us-map-bubble" data-composition-src="compositions/us-map-bubble.html" data-start="0" data-duration="12" data-track-index="2" data-width="1920" data-height="1080"></div>
53-
```

docs/catalog/blocks/world-map.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
title: "World Map"
3-
description: "Animated world choropleth with country-by-country reveal — D3 Natural Earth projection"
3+
description: "Animated world choropleth with country-by-country reveal, tooltip labels, and rotating globe inset — D3 Natural Earth projection"
44
---
55

66
# World Map
77

8-
Animated world choropleth with country-by-country reveal, gradient legend, and highlight pulses on top GDP countries — D3 Natural Earth projection with GSAP timeline.
8+
Animated world choropleth with country-by-country reveal, tooltip labels, and rotating globe inset — D3 Natural Earth projection
99

1010
`data` `map` `geography` `world` `choropleth`
1111

12-
<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/world-map.mp4?v=1779081476" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/world-map.png" autoPlay muted loop playsInline />
12+
<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/world-map.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/world-map.png" autoPlay muted loop playsInline />
1313

1414
## Install
1515

docs/catalog/components/caption-blend-difference.mdx

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
22
title: "Blend Difference"
3-
description: "Auto-inverting captions using mix-blend-mode: difference — text flips between white and black per-pixel against the background"
3+
description: "Auto-inverting text using mix-blend-mode: difference — flips between white and black per-pixel against the background"
44
---
55

66
# Blend Difference
77

8-
Auto-inverting captions using mix-blend-mode: difference — text flips between white and black per-pixel against the background
8+
Auto-inverting text using mix-blend-mode: difference — flips between white and black per-pixel against the background
99

1010
`text` `effect` `blend-mode` `contrast` `inversion`
1111

12+
<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 />
13+
1214
## Install
1315

1416
<CodeGroup>
@@ -19,49 +21,6 @@ npx hyperframes add caption-blend-difference
1921

2022
</CodeGroup>
2123

22-
## How It Works
23-
24-
White text with `mix-blend-mode: difference` inverts per-pixel against whatever is behind it:
25-
26-
- **Dark background** → text stays white
27-
- **Light background** → text flips to black
28-
- **Color background** → text becomes the complement (blue → orange, red → cyan)
29-
30-
The composition root needs `isolation: isolate` so the blend operates against sibling content (video, images) rather than the page background.
31-
32-
## Variants
33-
34-
| Class | Blend Mode | Effect |
35-
| --- | --- | --- |
36-
| `.blend-difference` | `difference` | Hard per-pixel inversion — maximum contrast |
37-
| `.blend-difference-soft` | `exclusion` | Softer inversion — less harsh on midtones |
38-
| `.blend-difference-screen` | `screen` | Text glows on dark areas, fades on light |
39-
40-
## Example
41-
42-
```html
43-
<div data-composition-id="root" style="isolation: isolate;">
44-
<video src="video.mp4" muted playsinline
45-
data-start="0" data-duration="30" data-track-index="0" />
46-
47-
<div class="clip blend-difference"
48-
data-start="0" data-duration="5" data-track-index="1"
49-
style="position: absolute; inset: 0; z-index: 10;
50-
display: flex; align-items: center; justify-content: center;">
51-
<span style="font-size: 120px; font-weight: 800;">
52-
YOUR CAPTION
53-
</span>
54-
</div>
55-
</div>
56-
```
57-
58-
## CSS Custom Properties
59-
60-
| Property | Default | Description |
61-
| --- | --- | --- |
62-
| `--blend-caption-color` | `white` | Base text color before blending |
63-
| `--blend-mode` | `difference` | Override blend mode on `.blend-difference` |
64-
6524
## Details
6625

6726
| Property | Value |

docs/catalog/components/caption-clip-wipe.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Left-to-right clip-path wipe reveal per word
99

1010
`captions` `caption-style` `wipe` `clip-path` `reveal`
1111

12-
<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-clip-wipe-v2.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/caption-clip-wipe.png" autoPlay muted loop playsInline />
12+
<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-clip-wipe.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/caption-clip-wipe.png" autoPlay muted loop playsInline />
1313

1414
## Install
1515

docs/catalog/components/caption-glitch-rgb.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RGB chromatic aberration with CRT scanline overlay
99

1010
`captions` `caption-style` `glitch` `cyber` `tech`
1111

12-
<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-glitch-rgb-v2.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/caption-glitch-rgb.png" autoPlay muted loop playsInline />
12+
<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-glitch-rgb.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/caption-glitch-rgb.png" autoPlay muted loop playsInline />
1313

1414
## Install
1515

docs/catalog/components/caption-gradient-fill.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Gradient-clipped text with elastic bounce entrance
99

1010
`captions` `caption-style` `gradient` `colorful`
1111

12-
<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-gradient-fill-v3.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/caption-gradient-fill.png" autoPlay muted loop playsInline />
12+
<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-gradient-fill.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/caption-gradient-fill.png" autoPlay muted loop playsInline />
1313

1414
## Install
1515

0 commit comments

Comments
 (0)