Card Resize
HTML to video · A camera move · Apache-2.0
- What it does
A transitions.dev-inspired card resize primitive that expands a compact card into a detail panel. Paste-in snippet: it registers no timeline, you wire it into your own.
- Get it
Paste its markup, CSS and script into your composition, then add the timeline lines from the comment at the top of the file to your own GSAP timeline. demo.html in the folder shows it running. 3 settings to change.
- Needs
Loads its libraries from the network when it renders (cdn.jsdelivr.net).
- Re-skin
By props (colors)
Declared variables: surface, accent, elevation. Its colors are custom properties declared in one block in the file (--hf-card-h, --hf-card-hair, --hf-card-l2, --hf-card-l3, --hf-card-w).
- License
Apache-2.0
- From