Files
openmotion/scripts
huihui-crypto 242dbd99d4 feat(library): add holiday sale promo, countdown and carousel Skills (#643)
* feat(library): add holiday sale promo, countdown and carousel skills

Three optional Library Skills generate editable HyperFrames sale films from JSON: a one-offer promo with exact was/now prices, a split-flap countdown to the true days or hours left, and a 3-7 product carousel. --check rejects contradictory prices, past deadlines, missing photos and text that will not fit. Adapted from MIT-licensed iart-ai Skills; listed on the Studio Skills page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(library): exact cent pricing, strict dates and fitted promo codes in sale skills

Compute sale prices in whole cents and re-check the discount after rounding; reject impossible calendar dates instead of letting Date.parse roll them over; size the promo code chip to the frame width. Adds regression tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(library): fit long localised prices, cap shown percentage, accept minute-precision dates

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(library): rebuild holiday sale films as one continuous photo-led world

Photos stay on screen and reframe, a sale tape scrolls and a badge spins for the whole film, and Anton display type moves through line masks instead of slide-style fades. Countdown takes up to four photos that change as the number rolls. Ships Anton (SIL OFL) with each Skill; credit moves to the top corner; carousel cover rebuilt from the new sample.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(library): give each holiday sale skill its own look

Promo stays an editorial poster; countdown becomes a timer (scrolling type wall, draining dial, dealt photo cards, ticket end card); carousel becomes a gliding product shelf with a pull-back end shot. Fit display type to Anton's real glyph widths so headlines, prices and codes are not clipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(library): countdown end card leads with the product photo

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(library): coverflow carousel, own sample covers, clearer category name

Carousel cards now move as a 3D coverflow and fan into an arc at the end. Promo and countdown covers are excerpts of films rendered by the Skills. Rename the Chinese label of the Product ads category to 商品广告.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(library): countdown puts the product in front of a giant number; promo card keeps its subject

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(library): price sale films in each currency's minor unit and save rebuildable image paths

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(library): animate the promo sale price in the currency's minor unit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(library): fail when the holiday-sale film.mjs copies drift from the canonical one

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: zhanghuihua <zhanghuihua@huihuideMacBook-Pro.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 15:49:48 +08:00
..