mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-17 15:24:19 +00:00
* feat(registry): add cinemagraph — a still photograph with one living region * feat(registry): add ai-answer-rank — a mock AI answer that re-ranks to put your brand in it A 1080x1080, 9s block for answer-engine and AI-visibility marketing. A prompt types into a chat card, the assistant answers with a ranked list of three picks, then re-ranks: the promoted brand slides into its slot (brandRank 1-3), the picks below step down, the third fades out of the list, and the brand row lands with the one accent highlight and a drawn check. Monochrome placeholder UI; prompt, lead-in, pick names, brand, rank, accent, ink and ground are variables. * feat(registry): add caret swap text effect * feat(registry): add pendulum-swing component Add a motion-primitive component that hangs content from a fixed pivot and lets it settle with a damped oscillation, like a hanging sign coming to rest on its hook. The swing rides a single unitless custom property (--hf-swing-angle) that the timeline eases 1 -> 0, so only rotation animates and it stays sub-pixel under the seek-by-frame capture engine. The demo drives it with a damped-oscillation ease (a cosine inside an exponential decay, normalised to land exactly upright) so the sign passes through center several times, each pass smaller, before it rests. Four enum variables: pivot (top-center/left/right), amplitude (gentle/standard/wide), direction (right/left), tone (ink/paper/accent, each a bg/fg pair to keep AA contrast on any frame). The snippet is recipe-only and does not own its timeline; its demo carries the same variable declaration. Ran npx hyperframes lint/validate on both files, regenerated registry.json via scripts/generate-registry-items.ts and the docs via scripts/generate-catalog-pages.ts. * fix(registry): drop hand-added cinemagraph index entry; catalog-publish adds it * style(registry): format pendulum-swing with oxfmt * fix(registry): keep pendulum-swing demo caption clear of the swinging sign * fix(registry): ship the ad-template editing contract for ai-answer-rank --------- Co-authored-by: Carlos Miranda Levy <carlosmirandalevy@gmail.com> Co-authored-by: tugrawork-creator <319556794+tugrawork-creator@users.noreply.github.com> Co-authored-by: Akshar Patel <aksharcommit@gmail.com> Co-authored-by: rottenpen <12029924+rottenpen@users.noreply.github.com>
72 lines
2.3 KiB
JSON
72 lines
2.3 KiB
JSON
{
|
|
"$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
|
|
"name": "pendulum-swing",
|
|
"type": "hyperframes:component",
|
|
"title": "Pendulum Swing",
|
|
"description": "Content hangs from a fixed pivot and swings into rest with gravity-damped oscillation, like a hanging sign settling on its hook.",
|
|
"tags": ["motion-primitive", "physics", "swing", "settle", "reveal"],
|
|
"files": [
|
|
{
|
|
"path": "pendulum-swing.html",
|
|
"target": "compositions/components/pendulum-swing.html",
|
|
"type": "hyperframes:snippet"
|
|
}
|
|
],
|
|
"variables": [
|
|
{
|
|
"id": "pivot",
|
|
"type": "enum",
|
|
"role": "layout",
|
|
"label": "Pivot",
|
|
"description": "Where the content hangs from. The swing rotates about this point, so the top edge stays pinned.",
|
|
"default": "top-center",
|
|
"options": [
|
|
{ "value": "top-center", "label": "Top center" },
|
|
{ "value": "top-left", "label": "Top left" },
|
|
{ "value": "top-right", "label": "Top right" }
|
|
]
|
|
},
|
|
{
|
|
"id": "amplitude",
|
|
"type": "enum",
|
|
"role": "motion",
|
|
"label": "Amplitude",
|
|
"description": "How far the first swing reaches before it settles. Every later swing scales with it, so the pendulum still comes to rest upright.",
|
|
"default": "standard",
|
|
"options": [
|
|
{ "value": "gentle", "label": "Gentle" },
|
|
{ "value": "standard", "label": "Standard" },
|
|
{ "value": "wide", "label": "Wide" }
|
|
]
|
|
},
|
|
{
|
|
"id": "direction",
|
|
"type": "enum",
|
|
"role": "motion",
|
|
"label": "Direction",
|
|
"description": "Which side the pendulum swings in from: right lifts the first swing clockwise, left mirrors it.",
|
|
"default": "right",
|
|
"options": [
|
|
{ "value": "right", "label": "Right" },
|
|
{ "value": "left", "label": "Left" }
|
|
]
|
|
},
|
|
{
|
|
"id": "tone",
|
|
"type": "enum",
|
|
"role": "style",
|
|
"label": "Tone",
|
|
"description": "Content colour: ink for light frames, paper for dark ones, accent rides --brand.",
|
|
"default": "ink",
|
|
"options": [
|
|
{ "value": "ink", "label": "Ink" },
|
|
{ "value": "paper", "label": "Paper" },
|
|
{ "value": "accent", "label": "Accent" }
|
|
]
|
|
}
|
|
],
|
|
"preview": {
|
|
"poster": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/pendulum-swing.png"
|
|
}
|
|
}
|