#7085 closed bug (invalid)
Animate border-width
Reported by: | Futjikato | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.4.3 |
Component: | unfiled | Version: | 1.4.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Animating borderWidth only works when the style is declared as inlinestyle. I skeched the problem at jsFiddle.net ( http://jsfiddle.net/TkQM5/ ).
Change History (2)
comment:1 follow-up: 2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
Replying to dmethvin:
The borderWidth property is a shorthand property and returns a string that is a series of numbers separated by spaces. The .animate() method is only documented to animate properties that are numeric, such as borderLeftWidth.
The first example is incorrect, it tries to animate a "borderWidth" property: http://api.jquery.com/animate/#example-0
And it could look like working when the border is increasing because the value returned by $().css("borderWidth") is the empty string (""), so it animates from 0 (equal to "") to the value set in the options of the .animate() method.
The borderWidth property is a shorthand property and returns a string that is a series of numbers separated by spaces. The .animate() method is only documented to animate properties that are numeric, such as borderLeftWidth.