Skip to main content

Bug Tracker

Side navigation

#7502 closed enhancement (invalid)

Opened November 13, 2010 06:48PM UTC

Closed November 20, 2010 05:51PM UTC

New Feature Request for 1.5: Inline SVG animation with animate() instead of SMIL

Reported by: WebManWlkg Owned by: WebManWlkg
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

If an element is Inline SVG, such as you might select with $("svg rect"), animate() should use this.setAttribute("x") instead of this.style.left. And this.setAttribute("y") instead of this.style.top. And this.setAttribute("height") instead of this.style.height. And this.setAttribute("width") instead of this.style.width. There could be more, but those 4 attributes would be the biggies to implement first.

This feature would allow Inline SVG animation in advance of browser SMIL support. Even if a browser supports SMIL (such as Firefox 4 beta), animating through jQuery would also allow the animation that obey the rich collection of jQuery easing functions.

This form asks for a username. The one I've given, WebManWlkg, is my plugins.jquery.com username. I don't know if the same logins apply across jQuery sites. Anyway, that's how you can get back to me, if necessary.

Attachments (0)
Change History (3)

Changed November 15, 2010 12:48AM UTC by SlexAxton comment:1

owner: → WebManWlkg
status: newpending

Do you think that this might make a better plugin than a official patch into jQuery, due to the relative scarcity of svg on the average website?

Changed November 15, 2010 11:43PM UTC by WebManWlkg comment:2

status: pendingnew

@SlexAxton:

I'll give the plugin approach a try. If I'm wildly successful, I'll withdraw my request.

Changed November 20, 2010 05:51PM UTC by dmethvin comment:3

resolution: → invalid
status: newclosed

I'm going to close this ticket since the plugin is the best next step for the idea.