Home › Forums › JavaScript › Proportionally scaling adjacent elements? › Reply To: Proportionally scaling adjacent elements?
August 28, 2016 at 10:21 am
#245005
slmille4
Participant
Excellent, got it, thank you! One thing I’m confused about though, in the original with the Resizable component, the transform code was:
$el.css({
transform: “translate(-50%, -50%) ” + “scale(” + scale + “)”
});
while in order to get things to line up when it was just in a div, I needed:
$el.css({
transform: “translate(-50%, 0%) ” + “scale(” + scale + “)”
});
why was the change necessary?