Is it possible to have the left end of .line
at the same place when hover? I thought transform-origin
would do the trick.
.line{
transition: .3s;
transform-origin: left;
}
body:hover .line{transform:scaleX(2);}
<div>
<svg clip-rule="evenodd" fill-rule="evenodd" viewBox="0 0 62 52" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path class="line" d="m15.665 25.123h20v1h-20z" />
</svg>
</div>