Open MostlyAwol opened 9 years ago
I've been trying to use relative values for the animate function and it doesn't work at all. It just uses the values I give without adding or subtracting from the objects set value first.
$("#sys_" + system).animate({svgWidth: '+=20', svgHeight: '+=20'},500);
Sets the rect to a width and height of 20 not its current size + 20;
NOTE: I am trying to animate a SVG files I'm loading by svg.load('region_name.svg') The SVG files has id's for the elements.
Calling the animation like this $('#rect1').animate({svgWidth: '+=20', svgHeight: '+=20'},500);
I've been trying to use relative values for the animate function and it doesn't work at all. It just uses the values I give without adding or subtracting from the objects set value first.
$("#sys_" + system).animate({svgWidth: '+=20', svgHeight: '+=20'},500);
Sets the rect to a width and height of 20 not its current size + 20;
NOTE: I am trying to animate a SVG files I'm loading by svg.load('region_name.svg') The SVG files has id's for the elements.
Calling the animation like this $('#rect1').animate({svgWidth: '+=20', svgHeight: '+=20'},500);