GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • DocsDocs
  • ExamplesExamples
  • AI KitAIAI KitAI
  • React
  • JS
  • Vue
  • AI
  • Install
  • Context
  • CSS generation
  • Transition editor
  • Get started
  • Editing
  • Ultramotion

This view

  • Original page
  • New address

GeezerVison is showing motion.dev — Performance Guard: block animation performance regressions in CI | Motion for AI

Performance Guard stops you shipping animation performance regressions.

It audits every pull request, compares your selected pages with the main branch, and posts the results. If a page gets worse than your policy allows, the check fails. Once you make the check required, the pull request can't merge.

Guard is included with Motion Cloud. Guard grades a pull request when its author has a Motion Cloud seat. Other pull requests get a neutral check. Results are private to your organisation.

Setup

1. Install the Motion Performance app

Open the Performance Guard dashboard.

Click Install on GitHub and pick the organisation (and repositories) to guard. This also connects your GitHub account to your Motion account. Each teammate who opens pull requests connects their own GitHub account on the same page.

Pull requests from bots, such as Dependabot, use the seat of the person who installed the Motion Performance app.

2. Add the workflow

Add this file to your repository as .github/workflows/motion-guard.yml:

name: Motion Performance Guard
on:
  deployment_status:
permissions:
  id-token: write
  contents: read
jobs:
  guard:
    runs-on: ubuntu-latest
    steps:
      - uses: motiondivision/motionscore-guard@v2
        with:
          pages: |
            /
            /pricing

Most hosts, such as Vercel and Netlify, tell GitHub when a deployment finishes, and Guard audits that deployment's URL:

  • A preview deployment of a pull request is checked against the baseline.
  • A production deployment of main updates the baseline.
  • The first run on a repo, even a pull request, saves the starting baseline.

Deploy from your own CI? Run Guard after your deploy step and pass url:.

Audits run on your own runner, so they are unlimited. id-token: write lets GitHub vouch for the run, so there is no API token to create.

3. Make the check required

A failing check only blocks merging if you require it. In your repository, open Settings → Branches (or Rules → Rulesets), protect your default branch and add Motion Performance Guard as a required status check.

Black Friday

Motion+ is 20% off until 30 Nov.

One payment, lifetime updates. Get every premium example, Motion UI and AI Kit for your coding agent.

Get 20% offGet 20% off

Reports

Guard posts its report as one comment on each pull request, and updates it on every new deployment:

  • Only pages whose grade changed or that fail the policy compared with main. If nothing moved, the comment says so in one line.
  • New findings on those pages, with the CSS selectors of the affected elements, so you can see exactly which animation caused the drop.
  • A fix prompt to paste into your coding agent. It describes each new finding and where it lives, so the agent can fix it without a round trip through the full report.

Policy

By default, the check fails when:

  • any page drops more than one grade (an A falling to a C, for instance), or
  • any page falls below C.

Change either rule with the action's inputs. Guard reads the policy from your main branch's workflow, so a pull request can't loosen its own gate by editing the file:

      - uses: motiondivision/motionscore-guard@v2
        with:
          floor: B
          max-drop: 0

Options

InputDefaultWhat it does
pages/Paths to audit, one per line.
floorCLowest grade any page may have, or none for no floor.
max-drop1How many grades a page may fall compared with main. Set 0 to fail on any drop.
servenoneA command that builds and serves the site on the runner, for repos without preview deployments. For example npm run build && npx serve dist -l 4173. Use it with url, for example http://localhost:4173.
urlthe deployment's URLSet this only when you deploy from your own CI, or serve the site on the runner.
cli-versionthe tested versionThe motionscore CLI version. The default is the version this release was tested with.

Outputs, for later steps in your workflow: verdict (for example pass, fail or skipped) and check-url.

Skip

Sometimes you'll want to skip a check, because you accept the performance cost of a particular animation.

Anyone with write access to the repository can skip a failing check in two ways:

  • Add the performance-ok label to the pull request.
  • Comment /guard accept on the pull request.

The check then passes as skipped. Once the pull request merges, the next production deployment of main makes the new grades the baseline.

Which pages are audited

List the pages with your key animations under pages:. Guard audits the same list on main and on pull requests, so the grades compare like with like. With no pages:, Guard audits / only.

Dashboard

The Performance Guard dashboard shows all connected organisations and repositories, the status of the last run, and the grade history for each page.

GitHub organisation

acme

PageMainPR #42Main over time
/pricing
A
B
Dropped
/
A
A
/blog
S
S
/docs
A
Not audited
/about
A
Not audited

Consistency

Performance Guard uses the MotionScore grading system to analyse performance from first principles, rather than measuring FPS.

FPS can fluctuate between environments and runs depending on load. MotionScore instead detects which elements are animating, how they animate, how they are triggered, which elements are layers and how big each layer is. So grades are more stable between runs and between environments.

Motion+One payment
Lifetime updates
Professional animation toolkit

Animate faster with Motion+.

Unlock 550+ premium examples, Motion UI, AI Kit and private community access.

Examples
550+
Tutorials
110+
AI Kit
Included
Explore Motion+Explore Motion+
  1. 01Performance Doctor

    Find and fix animation performance issues in source code and running local sites with Performance Doctor.

  2. 02Motion Studio

    Edit Motion animations directly on your website with a visual editor and fast animation editor AI. Then apply changes to source with your existing code agent.

Motion is supported by

Motion Cloud members who help fund Motion’s open-source development.

Become a supporter
  • SStanislav Shilin
  • AAbhishek
  • electrinity
  • AAriel Rodribuez
  • nimit
  • Meepo
  • Sean Bugeja
  • CCNTNAI
  • BBeto
  • Joshosullivam
  • DDamián Navarro
  • AAriel Conti
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.