                 self.circleimageview.frame = CGRectMake(0, 60, self.view.frame.width, 400)
                 self.circleimageview.alpha = 1.0
                 }, completion: { _ in
+                    for(var i = 0; i < 4; i++){
+                    self.lineShapeLayer[i].addAnimation(self.lineAnimation[i], forKey: nil)
+                    self.view.layer.addSublayer(self.lineShapeLayer[i])
+                    }
             })
             
         }else{      //メニューが消える

        let strokeStartAnimation = CABasicAnimation(keyPath: "strokeStart")
        strokeStartAnimation.fromValue = -0.5
        strokeStartAnimation.toValue = 1.0
        
        let strokeEndAnimation = CABasicAnimation(keyPath: "strokeEnd")
        strokeEndAnimation.fromValue = 0.0
        strokeEndAnimation.toValue = 1.0
        
        
        
        let strokeAnimationGroup = CAAnimationGroup()
        strokeAnimationGroup.duration = 0.2
        strokeAnimationGroup.repeatDuration = CFTimeInterval.infinity
        strokeAnimationGroup.animations = [strokeStartAnimation,strokeEndAnimation]
//        ovalShapeLayer.addAnimation(strokeAnimationGroup, forKey: nil)

        
        //遷移ボタンの作成
        for(var i = 0; i < 4; i++){

            AnimationMenuView.addSubview(GestureRecognizerViewArray[i])
            AnimationMenuView.sendSubviewToBack(GestureRecognizerViewArray[i])
            self.AnimationMenuView.layer.addSublayer(self.ovalShapeLayerArray[i])
            
            //線のアニメーション
            let linework = UIBezierPath()
            let lineShapeLayerwork = CAShapeLayer()
            let lineAnimationwork = CABasicAnimation(keyPath: "strokeStart")
            
            linework.moveToPoint(CGPointMake(CGFloat(moveToPoint[i][0]), CGFloat(moveToPoint[i][1])))
            linework.addLineToPoint(CGPointMake(CGFloat(addToPoint[i][0]), CGFloat(addToPoint[i][1])))
            Straightline.append(linework)
            Straightline[i].stroke()

            lineShapeLayerwork.path = Straightline[i].CGPath
            lineShapeLayerwork.strokeColor = UIColor.redColor().CGColor
            lineShapeLayerwork.lineWidth = 5.0
            lineShapeLayerwork.lineDashPattern = [2,3]
            lineShapeLayer.append(lineShapeLayerwork)
            
            lineAnimationwork.fromValue = 1.0
            lineAnimationwork.toValue = 0.0
            lineAnimationwork.duration = 15.0
            lineAnimation.append(lineAnimationwork)

        }
        
        //viewへの追加と前後関係の調整
