Bug Tracker

Modify

Ticket #9936 (closed bug: invalid)

Opened 22 months ago

Last modified 22 months ago

Animation of border radius

Reported by: michaelhaszprunar@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.2
Keywords: Cc:
Blocking: Blocked by:

Description

When animating CSS3 border radius, jquery animate() sets the initial value to 0 instead of using the current one.

Animation as such works though, but it transforms a circle to a square first before doing the animation.

JsFiddle here:  http://jsfiddle.net/9dxDP/

Change History

comment:1 Changed 22 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

The border-radius property is a shorthand property, so it consists of four numbers separated by spaces. As documented, .animate() only supports animating numeric properties. You need to break it up into four properties.

However, I am not sure of the effects of animating all the vendor-specific properties when they are not supported, e.g., -moz on Chrome -- jQuery certainly doesn't try to support that. Here is something a bit further along:

 http://jsfiddle.net/dmethvin/9dxDP/9/

You might want to work with some folks in the forum, and re-open a ticket if there is a specific bug.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.