Rushie

Interactions · motion template

Promo code apply

An order summary where a promo code is typed and applied, a spinner checks it (optionally a mistyped one shakes red first), a tick pops, the discount line slides in and the total counts down: discount codes, checkout promos and sale announcements.

16:9hover to playtap to play
9:16hover to playtap to play

1 credit to render, plus a standard licence for each catalogue picture it uses (4 credits each). Licences are free on Rushie at the moment, so an order costs 1 credit. Rendered to MP4 in about a minute, 6 seconds by default. The clip is yours alone: never listed, delivered as a private download link, and refunded if it cannot be made.

promo codediscount codecouponapply codecheckoutvalidationorder totalvouchersaleui animationmicro interactiongreen screen

Parameters

Everything this template takes. Anything you leave out keeps its default; a value out of range is refused with a sentence before anything is charged.

ParameterAcceptsDefault
titleHeading of the cardtext, up to 30 characters“Order summary”
subtotalOrder amount before the codea number, 0 to 1e+06120
currencyCurrency sign shown before amountstext, up to 3 characters“$”
labelGrey text in the empty code fieldtext, up to 24 characters“Promo code”
codeThe code that workstext, up to 16 characters“SPRING20”
wrongA mistyped code tried first in the retry sequencetext, up to 16 characters“SPRNG20”
percentDiscount the code gives, in percenta number, 1 to 10020
ctaButton labeltext, up to 12 characters“Apply”
messageMessage when the code works; {percent} becomes the discounttext, up to 40 characters“Code applied: {percent}% off”
errorMessage when the mistyped code is triedtext, up to 40 characters“That code isn't valid”
totalLabelLabel of the total linetext, up to 16 characters“Total”
sequenceApply the code straight away, or try a mistyped one, shake, and retryone of valid, retryvalid
pointerA mouse cursor or a fingertip touch point performs the actionsone of cursor, touchcursor
backdropWhat sits behind the element: dark, light, pure chroma-key green (#00b140) to key over footage, or your pictureone of dark, light, green, imagedark
imagePicture behind the element when the backdrop is imagea picture: asset:<id> or subject:<words>a catalogue picture
aspectFrame shapeone of 16:9, 9:16, 1:1, 4:516:9
durationSecondsLength in secondsseconds, 3 to 206
backgroundBackground coloura colour, e.g. #f4b942#0b0d12
foregroundText coloura colour, e.g. #f4b942#f5f5f2
accent__remotion-colora colour, e.g. #f4b942#f97316
fontTypeface family: sans (Inter), serif (Source Serif 4), mono (JetBrains Mono), or a display face: display (Fraunces), grotesk (Space Grotesk), condensed (Oswald), expressive (Bricolage Grotesque)one of sans, serif, mono, display, grotesk, condensed, expressivesans
localeLanguage and region the frame is drawn in (BCP 47, e.g. fr-FR): numbers, month and day names, and the interface words a template paints. Interface words are translated for en, fr, es and de; text you pass in other parameters is drawn as giventext, up to 35 characters“en-US”
uiTextInterface words to replace, keyed by the English word the template draws ("Today": "Ce soir"); "" hides onean object with {}

From your assistant

With Rushie connected, ask in plain words and name the template, or let it choose. These are the calls it makes. Connect an assistant.

design_motion({"brief": "<what it is for, in a sentence>", "template": "promo-code"})
    -> designs on this template, every parameter filled, free
make_motion({"template": "promo-code", "props": {"title": "Order summary", "currency": "$", "label": "Promo code", "code": "SPRING20", "image": "asset:a_82126efb17f3", "aspect": "16:9"}, "max_credits": 20})
    -> request_id
check_commission({"request_id": "req_..."})
    -> rendering, then the private download link

Make it from code

One request with an API key from your account, then poll GET /api/bank/request/<id>. See motion design for the rest.

curl -X POST https://rushie.ai/api/bank/motion \
  -H "Authorization: Bearer rsh_..." \
  -H "Content-Type: application/json" \
  -d '{"template": "promo-code", "props": {"title": "Order summary", "currency": "$", "label": "Promo code", "code": "SPRING20", "image": "asset:a_82126efb17f3", "aspect": "16:9"}, "max_credits": 20}'