Draft
Add animation framework with per-brand-kit motion tokens and @ottabase/motion package#114
Conversation
…aleTo, slideOffset, opacityFrom, reducedMotion Co-authored-by: thinkdj <688055+thinkdj@users.noreply.github.com>
…s, and tests Co-authored-by: thinkdj <688055+thinkdj@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add animation and transitions to framework
Add animation framework with per-brand-kit motion tokens and @ottabase/motion package
Feb 19, 2026
…s, css-runtime.ts Co-authored-by: thinkdj <688055+thinkdj@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds brand-kit-aware animation infrastructure: extended motion tokens in brand-engine, a new
@ottabase/motionpackage with transition presets powered by Motion, and merges latest main.Library choice: Motion (motiondev)
Motion wins on bundle size (critical for Workers edge deployment), tree-shakeability, and native CSS variable integration.
Brand-engine: Extended
TokenMotionSix new tokens, all optional with defaults, flowing through the existing resolve → CSS var pipeline:
easingSpring— bounce/elastic cubic-bezierscaleFrom/scaleTo— enter/exit scale factorsslideOffset— slide distance for drawer/sidebar animationsopacityFrom— starting opacity for fadesreducedMotion— accessibility preferenceAll 8 theme presets updated with distinct per-brand personalities (e.g. funky:
scaleFrom: 0.9,slideOffset: 16pxvs crisp:scaleFrom: 0.98,slideOffset: 4px).New
@ottabase/motionpackageSeven presets built from brand tokens, consumed via hooks:
fade,fadeUp,fadeDown,fadeScale,slideLeft,slideRight,scaleSpringuseBrandMotion(),useTransitionPreset(name),useMotionTokens()buildPresets(),parseDuration(),parseEasing(),parseOffset()Merge from main
Resolved conflicts in
tokens.ts,defaults.ts,css-runtime.ts— combined our new animation tokens with main'sdisableAnimationstoggle,ModeValue<T>generics,--motion-*aliases, and typography extended properties. Updated@ottabase/motionhooks to include the newdisableAnimationsfield.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.