Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

animate Issue with prefixes for relative values. #18

Open
MostlyAwol opened this issue Mar 26, 2015 · 0 comments
Open

animate Issue with prefixes for relative values. #18

MostlyAwol opened this issue Mar 26, 2015 · 0 comments

Comments

@MostlyAwol
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant