#7174 closed enhancement (duplicate)
Animate background-position works for left but not top
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | effects | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$('#obj').animate({'background-position': '20% 80%'},1000); Only the left position animates using this method. It jumps directly to the top position then animates to the left position.
Ideally, it would move to top then left or top and left simultaneously.
Change History (4)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Component: | unfiled → effects |
---|---|
Milestone: | 1.4.3 |
Priority: | undecided → low |
Status: | new → open |
Type: | bug → enhancement |
jQuery currently only animates single-value properties. You may try the background-position animate plugin.
comment:3 Changed 13 years ago by
Milestone: | → 1.next |
---|---|
Resolution: | → duplicate |
Status: | open → closed |
Version: | 1.4.2 → 1.5 |
Note: See
TracTickets for help on using
tickets.
Example: http://jsfiddle.net/Jason/ZWUfJ/4/