var left = 0;
var rectinit = 'rect(0px,' + w + 'px,' + h + 'px,0px)';
+
+ /**
+ * Rename animation direction name
+ */
+ if(!animation.direction) {
+ animation.direction = 'right'
+ }
+ if(animation.direction === 'top') {
+ animation.direction = 'up'
+ }
+ if(animation.direction === 'bottom') {
+ animation.direction = 'down'
+ }
+
if ((animation.direction === 'left' && animation.type === 'unmask') || (animation.direction === 'right' && animation.type === 'reveal')) {
right = 0;
} else if ((animation.direction === 'right' && animation.type === 'unmask') || (animation.direction === 'left' && animation.type === 'reveal')) {