Calculation to Return
Use this effect when the requested explanation needs the choreography below. Read references/motion-spec.md before adapting it.
Aspect ratio, resolution and caption safe area
Settle these with the user before the first build and keep them for the whole series.
- Aspect ratio:
--aspect 16:9,9:16,4:3or3:4. Each has its own native layout. With footage, read its size with ffprobe and use its ratio when it is one of the four; otherwise propose the nearest one (the footage is centre-cropped) and ask the user to confirm. Without footage, ask the user to choose. - Resolution: always ask, recommending 4K.
--resolution 4k(default, short side 2160),2k(1440) or1080p(1080): a 4K 9:16 segment is 2160×3840, a 4K 4:3 segment 2880×2160. - Caption safe area: the bottom of the frame is kept free for the creator's subtitles (and the platform's captions and buttons on Shorts, Reels and TikTok). The effect places its text and graphics above it; do not move them into that band.
Inputs
unitAmount(number).quantity(number).investment(number).currency(string).labels(string[]).conclusion(string).
The current references/defaults.json is the complete example input schema. The first result is unitAmount multiplied by quantity; the return multiple is that result divided by positive investment. labels describes the three calculation rows, and currency formats amounts. Set conclusion to agree with the computed result. Inspect the second-card expansion and both proportional bars.
Create
- Save caller content as a JSON file.
- Run
node scripts/create.mjs --out ./output --data ./content.json --style white-yellow --aspect 16:9 --resolution 4k. - Inspect the editable output at entry, development, and final hold.
- Render using the command printed by the create script.
The additional styles are charcoal-lime and midnight-ice. Use identical content and animation when comparing the three styles. All styles share the supplied fonts.
Required choreography
- Show a unit amount and reveal its quantity or frequency underneath.
- Draw the calculation separator and count the product into the result row.
- Expand an adjacent comparison card with input and return tracks.
- Grow the tracks and update the return multiple, then reveal the conclusion label.
Verification
Check values against the supplied data, labels against the visible objects, and every terminal state against the brief. Keep at least 1.2 seconds for final reading. Do not clip text or replace the defining motion with a generic fade.
Film-look renovation
Added a deliberate focal handoff: the calculation begins nearer the center, then slides into its final left position as the return comparison reveals at right. Increased the monetary hierarchy and removed soft card styling. Values and bar widths still derive from the same supplied unit, quantity and investment.
Preserve the supplied data schema and reading holds. Render all three palettes with the same content, then inspect every motion handoff.
Typography
Smiley Sans (Deyi Hei) sets titles, copy and labels in every language, Latin and Chinese alike. It is one slanted display weight, so hierarchy comes from size, colour and spacing rather than weight. IBM Plex Mono sets axis ticks, ordinals, counters and small labels so numbers keep a stable width. Noto Sans SC stays behind Smiley Sans for rare Chinese characters; pass --zh-font noto-sans-sc to set Chinese content in Noto Sans SC instead. A supplied --font always wins. build.json records the choice under typography.
Image material contract
Follow the image policy before adapting visual content. Photos, covers, document imagery and chat avatars use actual raster assets. Without user references, reuse the generated defaults in the slot map; do not ask for every image. User-specified images replace the corresponding slots first. Keep typography, vector diagrams, masks and movement editable in HyperFrames. New image subjects require the available image-generation tool (image2 when exposed), with actual provider/model provenance; no silent HTML substitute. Required presenter video and aligned alpha mattes remain separate inputs.
Part of Skillry · CreatorMotion
This skill is a free individual motion effect from CreatorMotion on Skillry.
- Looking for the full CreatorMotion master collection (122+ motion effects, automatic scene selection, and multi-clip assembly)? Explore skillry.dev.
- Connect Skillry MCP or browse all 87 free skills:
npx --yes skillry-cli@latest mcp· github.com/yihui-dev/skillry-skills
