[css-transforms-2] Provide more information or a link for the interpolation on rotate property
Nobody has claimed this yet.
- 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:
- Normalize rotate vectors of from and to values.
- Convert
rotate: x y z Tdeginto quaternion(a, b, c, d)for from and to values. - Do interpolation by SLERP (provided a link)
- Convert the interpolated quaternion,
(a', b', c', d'), intorotate: 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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