- Docs
- Help
- Motion not running
Docs for VelinStyle 1.3.x · verified against 1.3.0
Motion does not run 1.3.0
Work from initialization through policy, reduced-motion, and the explicit kill switch. Deutsch
Problem
Attributes are present but nothing animates, or motion is intentionally suppressed.
First check
Run the general diagnostic from the project directory first.
npx @birdapi/velinstyle doctor
Deeper check
npx @birdapi/velinstyle motion doctor .
npx @birdapi/velinstyle motion analyze .
npx @birdapi/velinstyle motion scan .
Quick check
- Run commands from the intended project directory.
- Use only documented profiles and flags.
- Check again after every change.
Motion initialization is missing
Cause: initMotion was never imported/called, so attributes have no runtime.
- Solution 1: Import
initMotion from @birdapi/velinstyle/motion and call it once on the document scope. - Solution 2: Confirm the motion package export resolves in the bundler.
- Solution 3: Re-run
npx @birdapi/velinstyle motion doctor . after wiring init.
Verify againnpx @birdapi/velinstyle doctor
npx @birdapi/velinstyle check ./index.html --profile docs
Reduced motion is active
Cause: prefers-reduced-motion: reduce intentionally limits or disables motion.
- Solution 1: Check OS/browser reduced-motion settings before changing code.
- Solution 2: Provide a non-motion fallback UX instead of forcing animation.
- Solution 3: Document the expected behavior for a11y reviews.
Verify againnpx @birdapi/velinstyle doctor
npx @birdapi/velinstyle check ./index.html --profile docs
Motion policy blocks the animation
Cause: data-velin-motion-policy on a scope rejects the intended motion.
- Solution 1: Inspect
data-velin-motion-policy on the nearest ancestor of the dead animation. - Solution 2: Align the attribute with the motion you intend to allow.
- Solution 3: Re-check with
motion analyze / motion scan on the project path.
Verify againnpx @birdapi/velinstyle doctor
npx @birdapi/velinstyle check ./index.html --profile docs
Motion was explicitly disabled
Cause: data-velin-motion="off" is an intentional kill switch.
- Solution 1: Search the DOM for
data-velin-motion="off". - Solution 2: Remove or change it only when motion is required for that scope.
- Solution 3: Verify again with doctor and a focused page check.
Verify againnpx @birdapi/velinstyle doctor
npx @birdapi/velinstyle check ./index.html --profile docs
Motion diagnostics find a setup issue
Cause: Motion-specific tooling reports setup problems before animation code is wrong.
- Solution 1: Run
npx @birdapi/velinstyle motion doctor . and fix reported setup first. - Solution 2: Use
motion analyze . then motion scan . for deeper findings. - Solution 3: Only then adjust presets/clips (e.g. create/setup flows).
Verify againnpx @birdapi/velinstyle doctor
npx @birdapi/velinstyle check ./index.html --profile docs
Production omitted motion assets
Cause: production can drop motion when --no-motion is set or motion is unused in scanned HTML.
- Solution 1: Rebuild without
--no-motion if motion is required. - Solution 2: Confirm motion markup is visible to the production scanner.
- Solution 3: Explain the build with
production . --explain before changing other flags.
Verify againnpx @birdapi/velinstyle doctor
npx @birdapi/velinstyle check ./index.html --profile docs