Skip to content

fix: document named motion easings#219

Open
omribz156 wants to merge 1 commit into
wix:masterfrom
omribz156:codex/document-named-easings
Open

fix: document named motion easings#219
omribz156 wants to merge 1 commit into
wix:masterfrom
omribz156:codex/document-named-easings

Conversation

@omribz156
Copy link
Copy Markdown

Summary:

  • export named easing helper types from @wix/motion: CssEasingName, CssEasing, JsEasingName, and JsEasing
  • type Motion/Interact easing options with those helpers while still allowing arbitrary CSS/JS easing strings
  • document cssEasings, the CssEasingName union, and the available named easing keys in the Motion README/API docs

Verification:

  • nvm use attempted; local Windows nvm returned activation error: A version argument is required but missing
  • corepack yarn install --immutable
  • corepack yarn workspace @wix/motion run build:types
  • corepack yarn workspace @wix/interact run build:types
  • corepack yarn prettier --check packages/motion/src/easings.ts packages/motion/src/types.ts packages/motion/src/utils.ts packages/interact/src/types/effects.ts packages/interact/src/types/config.ts packages/motion/README.md packages/motion/docs/api/README.md packages/motion/docs/api/types.md packages/interact/docs/api/types.md
  • git diff --check -- packages/motion/src/easings.ts packages/motion/src/types.ts packages/motion/src/utils.ts packages/interact/src/types/effects.ts packages/interact/src/types/config.ts packages/motion/README.md packages/motion/docs/api/README.md packages/motion/docs/api/types.md packages/interact/docs/api/types.md

Implemented with Codex assistance, with the patch kept to named easing type/documentation exposure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant