         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++){

    
    let GesturePositionArray: [[Int]] = [[225,171,50],[75,260,50],[200,330,50],[145,217,90]] //右上,左下,右下,真ん中
    var GestureRecognizerViewArray: [UIView] = []
    let ovalShapeLayerArrayColorCode: [String] = ["6648ff","6648ff","6648ff","6648ff"]                                          //ぐるぐる円のRGBカラーコード
    var ovalShapeLayerArray: [CAShapeLayer] = []
    var tap: [UITapGestureRecognizer] = []
//    let ovalShapeLayer = CAShapeLayer()
    
    override func viewDidLoad() {

            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への追加と前後関係の調整
