w3c / w3c/csswg-drafts

[css-transforms-2] Provide more information or a link for the interpolation on rotate property

Open
#4,516 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-transforms-2 Needs Edits
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

It would be nice to have interop for the interpolation on rotate property if possible, but at very least "SLERP" in the spec should probably link to somewhere, e.g. interpolation on quaternion vectors. And it'd be great to provide more details about how to convert a rotate axis and angle into a quaternion.
For example:

  1. Normalize rotate vectors of from and to values.
  2. Convert rotate: x y z Tdeg into quaternion (a, b, c, d) for from and to values.
  3. Do interpolation by SLERP (provided a link)
  4. Convert the interpolated quaternion, (a', b', c', d'), into rotate: x' y' z' T'deg.

If (2) (4) are included in the decomposing/recomposing of the 4x4 matrix, perhaps we should explicitly mention it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the css-transforms-2 specification, focusing on the rotate property interpolation and the existing “SLERP” reference. Review the linked interpolation of decomposed 3D matrix values section and determine whether it already covers quaternion conversion. Done means adding an appropriate link and clarifying the axis-angle, SLERP, and reverse-conversion steps if needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.