     
     // MARK: animations
     
-    func animationDuration(itemIndex:NSInteger, type:AnimationType)-> NSTimeInterval {
+    public func animationDuration(itemIndex:NSInteger, type:AnimationType)-> NSTimeInterval {
         assert(false, "added this method to cell")
         return 0
     }

        }
    }
    
    func isAnimating()->Bool {
        for item in animationItemViews! {
            if item.layer.animationKeys()?.count > 0 {
                return true

        self.layer.addAnimation(rotateAnimation, forKey: "rotation.x")
    }
    
    override public func animationDidStart(anim: CAAnimation) {
        self.layer.shouldRasterize = true
        self.alpha = 1
    }
    
    override public func animationDidStop(anim: CAAnimation, finished flag: Bool) {
        if hiddenAfterAnimation {
            self.alpha = 0
        }
