if (animation.filter) {
css.filter = animation.filter;
}
+ if (animation.align) {
+ css.textAlign = animation.align;
+ }
+ if (animation.scale && ['scale', 'scalefrom', 'zoomin', 'zoomout'].indexOf(animation.type) === -1) {
+ css.transform = 'scale(' + animation.scale + ')';
+ }
+ if (animation.letterspacing) {
+ css.letterspacing = parseFloat(animation.letterspacing);
+ }
animation.ease = this.fixEase(animation.ease);
if (animation.rotate !== undefined) {
decimalseparator: '.',
decimaldigitnumber: '0',
separator: ' ',
- align: 'left',
letterspacing: '0',
prefix: '',
suffix: '',
- scale: 1,
};
animation = $.extend({}, globalDefault, defaultParams, animation);
animation.startvalue = parseFloat(animation.startvalue.replace(/,/, '.'));
}
};
- css = {
- textAlign: animation.align,
- letterSpacing: animation.letterspacing,
- opacity: 0,
- transform: "scale(" + animation.scale + ")",
- }
+ css['opacity'] = 0;
var value = parseFloat(link.text().replace(/,/, '.'));
link.text('');