Bug Tracker

Ticket #5953: ticket.txt

File ticket.txt, 732 bytes (added by Axdr, 12 years ago)
Line 
1About specialEasing.
2
3If you're trying to animate font size using special per-property easing it won't work.
4For example:
5  $("span").animate({
6    font-size:'2em'
7  }, {
8    duration: 1000,
9    specialEasing: {
10      'font-size': 'special'
11    }
12  });
13
14A conflict is between
15    5328   var name = p.replace(rdashAlpha, fcamelCase);
16and
17    5618   var specialEasing = this.options.specialEasing && this.options.specialEasing[this.prop];
18
19this.prop will be 'fontSize' instead of 'font-size' but 'fontSize' is not a CSS name.
20
21This will work:
22  $("span").animate({
23    font-size:'2em'
24  }, {
25    duration: 1000,
26    specialEasing: {
27      'fontSize': 'special'
28    }
29  });
30
31Sorry for my awful english.