 
     public var appearanceAnimationDuration = defaultAppearanceAnimationDuration
 
+    // Visible cards direction (defaults to bottom)
+    public var visibleCardsDirection: VisibleCardsDirection = .bottom
+
     public weak var dataSource: KolodaViewDataSource? {
         didSet {
             setupDeck()

        let width = self.frame.width * pow(scalePercent, CGFloat(index))
        let xOffset = (self.frame.width - width) / 2
        let height = (self.frame.height - bottomOffset - topOffset) * pow(scalePercent, CGFloat(index))
        let multiplier: CGFloat = index > 0 ? 1.0 : 0.0
        let prevCardFrame = index > 0 ? frameForCard(at: max(index - 1, 0)) : .zero
        let yOffset = (prevCardFrame.height - height + prevCardFrame.origin.y + defaultBackgroundCardsTopMargin) * multiplier
        let frame = CGRect(x: xOffset, y: yOffset, width: width, height: height)
        
        return frame
    }
    
    internal func frameForTopCard() -> CGRect {


import UIKit
import pop

// Direction of visible cards
public enum VisibleCardsDirection: Int {
    case top
    case bottom
}

//Default values
private let defaultCountOfVisibleCards = 3
