         mask.path = path.CGPath
         layer.mask = mask
     }
+    
+    //Spin effect, added for fun!!
+    func rotate() {
+        let rotation : CABasicAnimation = CABasicAnimation(keyPath: "transform.rotation.z")
+        rotation.toValue = NSNumber(double: M_PI * 2)
+        rotation.duration = 1
+        rotation.cumulative = true
+        rotation.repeatCount = spins
+        self.layer.addAnimation(rotation, forKey: "rotationAnimation")
+    }
 }
    
    func setup(){
        super.layoutSubviews()
        layer.cornerRadius = bounds.width / roundness
        layer.borderWidth = borderWidth
        layer.borderColor = borderColor.CGColor

        }
    }
    
    @IBInspectable var rotatation: Bool = false {
        didSet{
            setup()
        }
    }
    
    @IBInspectable var spins: Float = 0.0 {
        didSet{
            setup()
        }
    }
    
    override var bounds: CGRect {
        get {
            return super.bounds
