Components / UI
Collage burst
Use it around a headline or a product: up to twelve images fly in from beyond the host edges to seeded slots on a ring that keeps the centre clear, overshoot and float.
Install
With this registry set in hyperframes.json (see the docs):
npx hyperframes add collage-burstUse it in a composition
It fills whatever box you give it, so set the host element's size and position. Set values withdata-variable-values.
<div data-composition-id="collage-burst" data-composition-src="compositions/collage-burst.html"
data-start="0" data-duration="3" data-track-index="1"
style="position:absolute;left:0;top:0;width:1920px;height:1080px"></div>Variables
| Variable | Type | Default | What it changes |
|---|---|---|---|
| image1 | image | assets/tile-01.svg | Tile; empty to skip. |
| image2 | image | assets/tile-02.svg | Tile; empty to skip. |
| image3 | image | assets/tile-03.svg | Tile; empty to skip. |
| image4 | image | assets/tile-04.svg | Tile; empty to skip. |
| image5 | image | assets/tile-05.svg | Tile; empty to skip. |
| image6 | image | assets/tile-06.svg | Tile; empty to skip. |
| image7 | image | assets/tile-07.svg | Tile; empty to skip. |
| image8 | image | assets/tile-08.svg | Tile; empty to skip. |
| image9 | image | assets/tile-09.svg | Tile; empty to skip. |
| image10 | image | assets/tile-10.svg | Tile; empty to skip. |
| image11 | image | assets/tile-11.svg | Tile; empty to skip. |
| image12 | image | assets/tile-12.svg | Tile; empty to skip. |
| clear | number | 30 | Percent of host width kept free at the centre. |
| tileSize | number | 18 | Max tile width as percent of host width. |
| radius | number | 1 | Percent of host height. |
| at | number | 0.46 | Seconds before the first tile. |
| exit | up, none | up | up or none. |
| ground | color | transparent | Background; transparent to overlay. |
| seed | number | 2 | Slot positions. |