is transform : none computes to matrix(1,0,0,1,0,0)
or something else
i want to reset transform , which approach is good for reset transform.
<style>
.box{
height: 100px;
width: 100px;
background-color: red;
transition: 0.5s;
transform: translate(100px) rotate(45deg);
}
/ * approach one */
.box:hover{
transform: none; /* dont know what does browser computes to transform: none*/
}
/ * approach two */
.box:hover{
transform: translate(0) rotate(0); /* browser computes matrix(1,0,0,1,0,0) */
}
/ * approach three */
.box:hover{
transform: translate(0); /* browser compute matrix(1,0,0,1,0,0) */
}
<style>
<div class="box">
</div>