Skip to content

Write HTML. Render video. Built for agents.

2.1 KB
Raw Blame
{
  "$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
  "name": "card-resize",
  "type": "hyperframes:component",
  "title": "Card Resize",
  "description": "A transitions.dev-inspired card resize primitive that expands a compact card into a detail panel",
  "tags": ["video-primitive", "transition-primitive", "transitions-dev-port", "card", "layout"],
  "files": [
    {
      "path": "card-resize.html",
      "target": "compositions/components/card-resize.html",
      "type": "hyperframes:snippet"
    }
  ],
  "variables": [
    {
      "id": "surface",
      "type": "enum",
      "role": "style",
      "label": "Surface",
      "description": "Card colour scheme: paper is the original white card, ink is a dark card for dark frames.",
      "default": "paper",
      "options": [
        {
          "value": "paper",
          "label": "Paper"
        },
        {
          "value": "ink",
          "label": "Ink"
        }
      ]
    },
    {
      "id": "accent",
      "type": "enum",
      "role": "style",
      "label": "Accent",
      "description": "Treatment of the media thumbnail: a plain plate, a hatched surface, or an image plate with a horizon-and-disc glyph.",
      "default": "ocean",
      "options": [
        {
          "value": "ocean",
          "label": "Ocean"
        },
        {
          "value": "forest",
          "label": "Forest"
        },
        {
          "value": "ember",
          "label": "Ember"
        }
      ]
    },
    {
      "id": "elevation",
      "type": "enum",
      "role": "style",
      "label": "Elevation",
      "description": "How far the card lifts off the frame, from a contact shadow to a deep drop.",
      "default": "raised",
      "options": [
        {
          "value": "flat",
          "label": "Flat"
        },
        {
          "value": "raised",
          "label": "Raised"
        },
        {
          "value": "floating",
          "label": "Floating"
        }
      ]
    }
  ],
  "preview": {
    "poster": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/card-resize.png"
  }
}