I want to make two events depends on a scale property of a menu. So this is my div:
<div class="starting-point">
<span class="" style="transform: scaleX(1) scaleY(1); height: 2760.56px; width: 2760.56px; top: -1380.28px; left: -1380.28px;"></span>
</div>
How can I get the transform: scaleX(1) scaleY(1) into a variable? Sometimes the values are scaleX(0) scaleY(0) and I want to perform different actions depending on these values.
I assigned dddd class to that span and I tried this, but there is no scale or something useful in the results.
var style = getComputedStyle(document.getElementsByClassName('dddd')[0])
Thanks a lot.