Skip to content

Bug in SVG animation #199

Closed
Closed
@lshrinivas

Description

@lshrinivas

The y2 property on an SVG line element doesn't animate correctly. The other properties work correctly - this is due to a typo here: https://github.com/julianshapiro/velocity/blob/master/jquery.velocity.js#L1056

The offending line:

var SVGAttributes = "width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y1";

should be:

var SVGAttributes = "width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";

(Note the y1 -> y2 at the end)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions