Closed Bug 1773549 Opened 2 years ago Closed 1 year ago

Authoring tool for `linear(...)` easing function

Categories

(DevTools :: Inspector: Animations, enhancement, P3)

enhancement

Tracking

(firefox112 fixed)

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: dshin, Assigned: nchevobbe)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

Attachments

(5 files)

bug 1764126 implements a new animation-timing-function with linear() function that let authors define easing functions as piecewise linear functions.
Once the spec stabilizes, it'd be nice to add an editor for it into timing-function editor.

Depends on: 1764126

One could imagine an editor or visualizer that looks something like the graph in https://github.com/w3c/csswg-drafts/pull/6533#issue-975699295

Here's the graph that I linked to in previous comment (from the github issue), which corresponds to this syntax: linear(0, 0.7, 0.87, 0.98, 1)

Priority: -- → P2
Priority: P2 → P3
Attached file Sample file

Based on the example in comment 2

It looks like the animation inspector part already works so I guess this bug is about the authoring component only.

Depends on: 1776460
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED

This has been behind a flag (default-enabled on Nightly only) for a little while, since we've been the only engine with an implementation, but Chromium is now implementing/shipping this feature per https://groups.google.com/a/chromium.org/g/blink-dev/c/Q7fjvM9Mn0c/m/Mz14zzFhAAAJ , so we will probably ship soon, per bug 1819447.

Would it be possible to circle back and finish off the devtools authoring tool here? I suspect it doesn't strictly block us shipping the feature (since it works properly for users regardless of the presence of an authoring tool), but it would definitely be nice to have!

Flags: needinfo?(nchevobbe)
Attached image authoring tool WIP

sure, I got a chart linked up, need to add the ability to add/remove/move points now

Flags: needinfo?(nchevobbe)
Duplicate of this bug: 1776382
Attachment #9287889 - Attachment description: WIP: Bug 1773549 - [devtools] Add widget for linear easing function → Bug 1773549 - [devtools] Add widget for linear easing function. r=#devtools-reviewers.
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f62858af25e4
[devtools] Add widget for linear easing function. r=devtools-reviewers,jdescottes.
Regressions: 1821136
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: