}
var defaultParams = {};
var globalDefault = {
- x: 0,
- y: 0,
- yoyo: 0,
- repeatdelay: 0,
- repeat: 0,
- transformorigin: '50% 50%',
- preventflickering: 0
+ x: 0, y: 0, yoyo: 0, repeatdelay: 0, repeat: 0, transformorigin: '50% 50%', preventflickering: 0
};
if ($(linkElement).hasClass('textLink')) {
from.scale = 1;
to.scale = animation.scale;
from.transformOrigin = to.transformOrigin = animation.transformorigin;
+ } else if (animation.type === 'rotate') {
+ to.display = 'block';
+ to.visibility = 'visible';
+ from.rotation = 0;
+ to.rotation = animation.rotation;
+ from.transformOrigin = to.transformOrigin = animation.transformorigin;
+ } else if (animation.type === 'rotatefrom') {
+ to.display = 'block';
+ to.visibility = 'visible';
+ to.rotation = 0;
+ from.rotation = animation.rotation;
+ from.transformOrigin = to.transformOrigin = animation.transformorigin;
} else if (animation.type === 'translatefrom') {
from.display = 'none';
to.display = 'block';