Is it possible to have a characteristic transformed not in the matrix?



  • I'm writing animating CSS properties. transform♪ For that, I need to get the primary value of the properties and of course. Of course, the user indicates when the function is started. Initially tried to get out of getComputedStyle, but he's returning the matrical value.matrix3d(0.751754, 0, 0.273616, 0, 0, 0.8, 0, 0, -0.34202, 0, 0.939693, 0, 50, 0, 0, 1)) Is it possible to obtain a primary value as translateX(-50px) sclae(.8) rotateY(-20deg) ? Or should we work with the matrix? What are the options available for programme animation transform ?



  • We need to calculate the values by formula. The formula is too much to add them in response, so I'll give you a reference: https://css-tricks.com/get-value-of-css-rotation-through-javascript/




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2