Jump to content

matrix3d


Matej
 Share

Recommended Posts

Hi , lets say i have html code

 

<div class="one" style="transform:translate3d(100px,0,0,) scale3d(0,0,0,)"></div><div id="two style="transform:translate3d(100px,0,0,) scale3d(1,1,1,)"></div> 

Is there any way to get value each argument separatedly? if i use

 

var first=window.getComputedStyle(one).getPropertyValue("transform") // returns matrix3d;document.getElementById("two").style.transform=first // this just moves element ignoring transition(even tho translate values are the same) and ignores scale 

 

Any ideas how to deal with it?

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...