Skip to the usage guide
OpenMotion · Sale Countdownby nexu-io

Sale Countdown

OpenMotion Sale Countdown turns a sale start or end moment into a short teaser where a giant number rolls down to the real time remaining. It produces an editable 9.6-second HyperFrames project and MP4 in 9:16, 4:5, 1:1 or 16:9.

  • Sale countdown teaser
  • OpenMotion
  • Editable video composition
Sale CountdownSKILL.md
Expected result An editable 9.6-second HyperFrames project in out/ plus a rendered MP4, in 9:16, 4:5, 1:1 or 16:9, with a small "Made with OpenMotion" sign-off unless --no-credit is passed. What to provide Required: the occasion, whether the countdown targets the start (starts) or end (ends) of the sale, the exact target time with its time zone, when the video will be posted (postAt), and the call to action. Optional: up to four product photos (transparent PNG cutouts work best), a short public teaser line such as "Up to 40% off sitewide", and a forced unit. Never invent the date or the discount. Requirements The number is true only for the postAt it was computed from, so post a fresh render each day instead of reusing yesterday's figure.
Read the pinned SKILL.md for the complete instructions and dependencies.

01 What It Does

How it works

OpenMotion Sale Countdown rolls giant digits to the true days or hours left at posting time, then shows the date, offer teaser and call to action.

OpenMotion workflowEditable workflow and source instructions

The Working Approach

A video cannot know when it is watched, so the script computes the number from two fixed moments: postAt and target.date. It rounds down, so "6 days" never overstates the time left, and the check refuses a target before postAt, less than one unit left, more than 99, or text too long to fit. The unit is days when two or more days remain, otherwise hours, unless unit forces one. The number is a reel moved by the timeline, so every frame is deterministic and editable; theme, brand.accent and labels work as in the sale-promo Skill. The film is silent, so add music in the editor and a tick on each flip if sound is wanted.

Expected Deliverables

  • An editable 9.6-second HyperFrames project in out/ plus a rendered MP4, in 9:16, 4:5, 1:1 or 16:9, with a small "Made with OpenMotion" sign-off unless --no-credit is passed.
See the Example Brief

From Brief to Review

  1. 01
    Collect the moments

    Gather the occasion, starts or ends, the exact zoned target time, postAt, up to four product photos, the public teaser line and the call to action.

  2. 02
    Write and check countdown.json

    Follow the schema, then run node scripts/build.mjs --check countdown.json. The check prints the number that will appear; confirm it with the user.

  3. 03
    Generate, render and review

    Run node scripts/build.mjs countdown.json out/ [--aspect 9:16] [--no-credit], then npx hyperframes check and npx hyperframes render -o countdown.mp4, and walk the review guide.

02 When to Use It

When to use it

Required: the occasion, whether the countdown targets the start (starts) or end (ends) of the sale, the exact target time with its time zone, when the video will be posted (postAt), and the call to action. Optional: up to four product photos (transparent PNG cutouts work best), a short public teaser line such as "Up to 40% off sitewide", and a forced unit. Never invent the date or the discount.

A Good Fit

  • Black Friday and Cyber Monday teasersA "starts in N days" or "ends in N hours" vertical video for a seasonal sale, posted fresh each day of the teaser run.
  • Launch, drop and last-chance remindersA product drop or final-hours reminder where the true remaining time and the exact date must be right on the day it goes live.

Limits to Check

  • One render per posting dayThe number is true only for the postAt it was computed from, so post a fresh render each day instead of reusing yesterday's figure.
  • Silent by defaultThe generated film has no soundtrack; music and flip ticks are added in the editor. When installed on its own, set OPENMOTION_HOME or run npm install gsap.

Bring These Inputs

  • What to provideRequired: the occasion, whether the countdown targets the start (starts) or end (ends) of the sale, the exact target time with its time zone, when the video will be posted (postAt), and the call to action. Optional: up to four product photos (transparent PNG cutouts work best), a short public teaser line such as "Up to 40% off sitewide", and a forced unit. Never invent the date or the discount.

03 Decisions That Matter

Design decisions

  1. Fixed moments instead of a ticking timer

    Deriving the remaining time from postAt and target.date keeps the number honest at the moment of posting, which a live timer inside a rendered video cannot do.

  2. Days or hours by span

    The unit switches to days from two days onward and to hours below that, so the figure reads naturally; unit forces one when the brief calls for it.

  3. Reel-style digit motion

    The giant number rolls down a few steps behind the product and lands on the true value, with products taking turns in front under a moving spotlight.

04 Try a Focused Brief

Try it with your own brief

Use the example as a starting point. Supply your own brief, materials and constraints.

Collect the moments

Gather the occasion, starts or ends, the exact zoned target time, postAt, up to four product photos, the public teaser line and the call to action.

Upstream Source File
https://github.com/nexu-io/openmotion/blob/709b10fd9ac5e33f996e035361cbb365d7ff79ae/library/skills/openmotion-sale-countdown/SKILL.md

Write and check countdown.json

Follow the schema, then run node scripts/build.mjs --check countdown.json. The check prints the number that will appear; confirm it with the user.

Example Brief
Use openmotion-sale-countdown for a Black Friday teaser. Occasion: Black Friday; countdown to `starts`; target 2026-11-27T00:00:00-05:00; postAt 2026-11-21T09:00:00-05:00; teaser line "Up to 40% off sitewide"; CTA "Shop the sale"; product photos: [attach up to four transparent PNGs]. Write countdown.json, run `node scripts/build.mjs --check countdown.json`, show me the printed number to confirm, then generate `out/` at 9:16 and render countdown.mp4.

Generate, render and review

Run node scripts/build.mjs countdown.json out/ [--aspect 9:16] [--no-credit], then npx hyperframes check and npx hyperframes render -o countdown.mp4, and walk the review guide.

  • The printed countdown number matches the confirmed target time and postAt, and the date, offer teaser and call to action are correct.
  • The aspect ratio suits the placement, advertiser branding leads the film, and the sign-off is present unless --no-credit was requested.
  • The silent film has music and flip ticks added in the editor if the user wants sound.

Keep your brief and source assets together in OpenDesign, and follow the linked Skill’s own setup.

05 Source and License

Source and license

This page describes the pinned source revision linked below. Upstream behavior and requirements can change.

Source Owner
nexu-io
License
Apache-2.0
Reviewed Snapshot
2026-11-19 · 709b10fd9ac5
Editorial Source Summary
Roll giant digits to the remaining time calculated for the actual posting moment, then show the date and confirmed offer.

Read the pinned SKILL.md for the complete instructions and dependencies.

06 Questions Before You Start

Questions before you start

Why does the countdown show days instead of hours?

The unit is days when two or more days are left and hours below that. If the brief needs a specific unit, set unit to force it before generating.

What happens if the target time is before `postAt`?

The check refuses a target before postAt, less than one unit left, or more than 99, and reports text too long to fit. Correct the moments in countdown.json and re-run the check.

Can I reuse yesterday's render?

No. The number is computed from the postAt you supplied, so post a fresh render each day of a teaser run rather than reusing an older figure.

OpenDesign

Sale Countdown

Keep your brief, source material and design work together in a local workspace. Check the skill’s own setup before adding it to your workflow.

Upstream Source File
https://github.com/nexu-io/openmotion/blob/709b10fd9ac5e33f996e035361cbb365d7ff79ae/library/skills/openmotion-sale-countdown/SKILL.md