     private func startRotatingAnimation() {
         let rotation            = CABasicAnimation(keyPath: "transform.rotation.z")
         rotation.toValue        = M_PI*6.0
-        rotation.duration       = duration * 0.77
+        rotation.duration       = (duration - AfterpartDuration) * 0.77
         rotation.cumulative     = true
         rotation.additive       = true
         rotation.removedOnCompletion = false

        drawPathAnimation.toValue = 1.0
        drawPathAnimation.fillMode = kCAFillModeForwards
        drawPathAnimation.removedOnCompletion = false
        drawPathAnimation.duration = 0.3
        checkmarkShapeLayer.addAnimation(drawPathAnimation, forKey: "strokeEnd")
    }
    

    private func startFadeOutOutSideLineAnimation() {
        let fadeOutAnimation = CABasicAnimation(keyPath: "opacity")
        fadeOutAnimation.toValue  = 0
        fadeOutAnimation.duration = AfterpartDuration
        fadeOutAnimation.fillMode = kCAFillModeForwards
        fadeOutAnimation.removedOnCompletion = false
        fadeOutAnimation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseIn)
