Open hfhchan opened 8 years ago
Currently there is no easy way to get something like this:
[ Scale{ [1.1] }, Translate{ ["2px", "2px"] } ]
from an HTMLElement with an inherited transform.
transform
Animation scripts have to write complicated code to reverse the matrix() given by window.computedStyle(), which is not always possible.
matrix()
window.computedStyle()
On the other hand, SVGElement.transform.baseVal returns separate transforms with matrices that are at least reversable.
SVGElement.transform.baseVal
This might be a job for css-typed-om.
Currently there is no easy way to get something like this:
from an HTMLElement with an inherited
transform
.Animation scripts have to write complicated code to reverse the
matrix()
given bywindow.computedStyle()
, which is not always possible.On the other hand,
SVGElement.transform.baseVal
returns separate transforms with matrices that are at least reversable.