You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5ce98af
Browse filesBrowse the repository at this point in the historyBrowse files
CSS Forge ships no other preset constants. The README shows the two
curves written out in a motion config instead.
Refs #83
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/issue-83-motion.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,4 +7,3 @@ Add a `motion` module for transition durations and easing curves.
7
7
-`motion.duration.<group>.value` and `motion.easing.<group>.value` emit `--motion-duration-<group>-<name>` and `--motion-easing-<group>-<name>`, referenced from primitives as `motion.duration.<group>.<name>` and `motion.easing.<group>.<name>`.
8
8
- A duration must be a non-negative number with `ms` or `s`, and an easing a CSS keyword, `cubic-bezier()` with x1 and x2 in [0, 1], `steps()` or `linear()`. Anything else fails generation with the token's path.
9
9
- A duration over 300ms warns (`motion-long-duration`), or over 500ms in a group with `settings.long: true` for modals and drawers. `ease-in` and ease-in shaped `cubic-bezier()` curves warn (`motion-ease-in`). Both go through `getDiagnostics` and the CLI's `cssforge: warning:` output.
10
-
-`uiEasings` exports the two recommended curves, `out` and `inOut`, to spread into an easing group. Nothing is added unless a config spreads it.
return`Motion easing ${path} is ease-in shaped: it starts slow and ends fast, which reads as lag on UI. Use an ease-out curve such as ${uiEasings.out}, or ${uiEasings.inOut} for movement on screen.`;
290
+
return`Motion easing ${path} is ease-in shaped: it starts slow and ends fast, which reads as lag on UI. Use an ease-out curve such as cubic-bezier(0.23, 1, 0.32, 1), or an ease-in-out curve such as cubic-bezier(0.77, 0, 0.175, 1) for movement on screen.`;
0 commit comments