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 aace91b
Browse filesBrowse the repository at this point in the historyBrowse files
feat(core): data-motion-blur-phase sets when the shutter opens (#6983)
* feat(core): data-motion-blur-phase sets when the shutter opens
Page motion blur always centres the shutter on the frame. Add a phase in degrees of a
frame, -360 to 360: the window starts at t + phase / 360 / fps and lasts shutter / 360 /
fps. Unset stays centred, so a page without the attribute renders the same bytes.
Both tiers take the window from one place, shutterTimes in frames.ts.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* feat(core): the motion blur report carries the shutter phase
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
* chore(core): drop the phaseDeg doc comment, the comment-share ratchet may only fall
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
Copy file name to clipboardExpand all lines: docs/guides/motion-blur.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ That is all. The same attribute drives the browser editor preview and `hyperfram
28
28
| --- | --- | --- |
29
29
|`data-motion-blur`| none |`on` enables blur. `off` opts out, on the root or on any subtree. |
30
30
|`data-motion-blur-shutter`|`240`| Shutter angle in degrees, 0–720. Larger is a longer smear. |
31
+
|`data-motion-blur-phase`| centred | When the shutter opens, in degrees of a frame, -360 to 360. The window starts at `t + phase / 360 / fps` and lasts `shutter / 360 / fps`. `0` opens on the frame, so the smear trails ahead of it; unset centres it, the same as minus half the shutter. Matches After Effects' Shutter Phase. |
31
32
|`data-motion-blur-samples`| at least 32 | A fixed number of samples per frame, 2–64. Left unset, each mover gets at least 32, and about one per 2 px of smear when that is more, so a fast move never shows steps. |
32
33
|`data-motion-blur-events`| off |`on` runs timeline callbacks (`onUpdate` and similar) while blur looks for movers, and at each sample when a callback changes an element's inline style or its box. Needed when the motion is set from a callback, such as a `render(t)` function, which blur cannot otherwise see. |
33
34
|`data-motion-blur-tier`|`auto`|`capture` or `filter` forces one of the two ways blur is drawn (below). |
Copy file name to clipboardExpand all lines: packages/cli/src/docs/motion-blur.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ Fast-moving elements get a shutter smear along their path. It is opt-in: nothing
6
6
7
7
-`data-motion-blur` — `on` enables blur; `off` opts out, on the root or on any subtree
8
8
-`data-motion-blur-shutter` — shutter angle in degrees, 0-720 (default: 240)
9
+
-`data-motion-blur-phase` — when the shutter opens, in degrees of a frame, -360 to 360: 0 opens on the frame (default: centred on the frame, which is minus half the shutter)
9
10
-`data-motion-blur-samples` — samples per frame, 2-64 (default: at least 32, sized to the smear)
10
11
-`data-motion-blur-events` — `on` runs timeline callbacks while blur looks for movers; needed when motion is set from a `render(t)` callback
11
12
-`data-motion-blur-tier` — `auto` (default), `capture` or `filter`
0 commit comments