       mainView.frame = getMainViewFrameWithSideMenuTransitionType(sideMenuTransitionType)
     } else {
       unowned let ownedSelf = self
-      UIView.animateWithDuration(0.3, animations: { 
+      UIView.animateWithDuration(Double(menuAnimationDuration), animations: {
         menuView.frame = ownedSelf.getMenuViewFrameWithSideMenuTransitionType(sideMenuTransitionType)
         ownedSelf.mainView.frame = ownedSelf.getMainViewFrameWithSideMenuTransitionType(sideMenuTransitionType)
       })

  
  init(mainViewController: UIViewController, leftMenuViewController: UIViewController) {
    self.menuWidth = CGRectGetWidth(UIScreen.mainScreen().bounds) - 100
    self.mainViewController = mainViewController
    self.leftViewController = leftMenuViewController
    
    self.mainView = UIView()
    self.hideView = UIView()
    self.leftMenuView = UIView()
    self.animationDuration = 0.3
    
    self.leftMenuStatus = .HFSideMenuStatusUnknown
    super.init(nibName: nil, bundle: nil)

  }
  
  var menuWidth: CGFloat
  var menuAnimationDuration: CGFloat
  
  private var mainViewController: UIViewController
  private var leftViewController: UIViewController
  
  private var mainView: UIView
  private var hideView: UIView
  private var leftMenuView: UIView
  
  private var leftMenuStatus: HFSideMenuStatusType
  
