Before After Stack

Animated comparison: old approach items cross out one by one, then new approach slides in

Surfaces
apps-script-web
Fields
FieldType
itemsarray of strings (old approach items to cross out, alias: before_items)required
before_labelstringoptional
after_labelstringoptional
resultstring (the new approach shown after animation, alias: after_text)required
delaynumber (optional, seconds between strikes)optional
accentstring (optional, hex)optional
Example payload
{
  "type": "before_after_stack",
  "items": [
    {
      "label": "Item 1"
    },
    {
      "label": "Item 2"
    }
  ],
  "result": "Improved"
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:before_after_stack",
  "displayName": "Before After Stack",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/before_after_stack",
  "capabilities": [
    "apps-script-web"
  ],
  "description": "Animated comparison: old approach items cross out one by one, then new approach slides in",
  "representativeQueries": [
    "show a old-vs-new stack comparison animation",
    "animated comparison: old approach items cross out one by one, then new approach slides in",
    "render a before after stack"
  ]
}
← Full ARD catalog Try it live →
Deploy your own renderer

The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.

git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →