Re: [csswg-drafts] [web-animations-1] Additive transform animations easily invoke undesirable matrix interpolation

After thinking about this, I'm concerned switching the composite / interpolate order isn't worth the additional complexity it adds to dealing with composite and other operations. I'm in favor of trying to use neutral values which implicitly match transform list shapes in order to avoid falling back to matrix interpolation.

I'm in favor of using a `null` value as a neutral value. If you had a neutral keyframe in the middle of an animation a `null` value could let us implicitly interpolate to/from matching transform lists on either side, e.g.

```js
[
  { transform: 'translateX(100px) rotateZ(720deg)' },
  { transform: null },
  { transform: 'scale(2) rotateZ(360deg)' },
]
```

This might allow us to do something smart like interpolate to `translateX(0) rotateZ(0)` and then from `scale(1) rotateZ(0)`.

-- 
GitHub Notification of comment by flackr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2204#issuecomment-380352741 using your GitHub account

Received on Wednesday, 11 April 2018 07:20:29 UTC