     }
     
     private func resizeToFoldedFrame(completion completion: (() -> Void)?) {
-        if self.allowCenterButtonRotation == true {
+        if self.enabledFoldingAnimations.contains(.MenuButtonRotation) == true {
             UIView.animateWithDuration(0.0618 * 3, delay: 0.0618 * 2, options: UIViewAnimationOptions.CurveEaseIn, animations: { () -> Void in
                 self.centerButton.transform = CGAffineTransformMakeRotation(0.0)
                 }, completion: nil)
+        } else {
+            self.centerButton.transform = CGAffineTransformMakeRotation(0.0)
         }
         
         UIView.animateWithDuration(0.15, delay: 0.35, options: UIViewAnimationOptions.CurveLinear, animations: { () -> Void in

import UIKit
import AudioToolbox

public class ExpandingMenuButton: UIView, UIGestureRecognizerDelegate {
    
    public enum ExpandingDirection {

        // Create moving path
        //
        let path: CGMutablePathRef = CGPathCreateMutable()
        
        if self.enabledFoldingAnimations.contains([.MenuItemMoving, .MenuItemBound]) == true {
            CGPathMoveToPoint(path, nil, startingPoint.x, startingPoint.y)
            CGPathAddLineToPoint(path, nil, backwardPoint.x, backwardPoint.y)
            CGPathAddLineToPoint(path, nil, endPoint.x, endPoint.y)
            
            movingAnimation.keyTimes = [0.0, 0.75, 1.0]
        } else if self.enabledFoldingAnimations.contains(.MenuItemMoving) == true {
            CGPathMoveToPoint(path, nil, startingPoint.x, startingPoint.y)
            CGPathAddLineToPoint(path, nil, endPoint.x, endPoint.y)
            
            movingAnimation.keyTimes = [0.0, 0.75, 1.0]
        } else if self.enabledFoldingAnimations.contains(.MenuItemBound) == true {
            CGPathMoveToPoint(path, nil, startingPoint.x, startingPoint.y)
            CGPathAddLineToPoint(path, nil, backwardPoint.x, backwardPoint.y)
            CGPathAddLineToPoint(path, nil, startingPoint.x, startingPoint.y)
            
            movingAnimation.keyTimes = [0.0, 0.3, 0.5, 1.0]
        } else if self.enabledFoldingAnimations.contains(.MenuItemFade) {
            CGPathMoveToPoint(path, nil, startingPoint.x, startingPoint.y)
            CGPathAddLineToPoint(path, nil, startingPoint.x, startingPoint.y)
        }
        
        movingAnimation.path = path
        movingAnimation.duration = 0.35
        
        animationGroup.animations?.append(movingAnimation)
        
        // 3.Configure fade animation
        //
        if self.enabledFoldingAnimations.contains(.MenuItemFade) {
            let fadeAnimation = CAKeyframeAnimation(keyPath: "opacity")
            fadeAnimation.values = [1.0, 0.0]
            fadeAnimation.keyTimes = [0.0, 0.75, 1.0]
            fadeAnimation.duration = 0.35
            animationGroup.animations?.append(fadeAnimation)
        }
        
        return animationGroup
    }
    
    
