         if animated {
             UIView.animateWithDuration(0.2, delay: 0, options: .BeginFromCurrentState | .CurveEaseInOut, animations: {
                 self.revealed = revealed
-            }, completion: nil)
+            }, completion: { completed in
+                UIView.animateWithDuration(0.2) {
+                    self.scrollView.contentOffset.y = -self.scrollView.contentInset.top
+                }
+            })
         } else {
             self.revealed = revealed
         }


        appliedInsets = insets
        scrollView.contentInset = targetInset
        scrollView.contentOffset.y = -scrollView.contentInset.top
    }
    
    private func addInsets() {

        
        let progress = fractionRevealed()
        
//        CATransaction.setDisableActions(true)
//        shadowLayer.opacity = 1.0 - Float(progress)
//        CATransaction.setDisableActions(false)
        
        applyContentContainerTransform(progress)
    }
