 
 import UIKit
 
-
-
 class OnboardingViewController: UIViewController, UIScrollViewDelegate {
     
     // Backgrounds
     @IBOutlet var bgImageView: UIImageView!
     @IBOutlet var bgMaskImageView: UIImageView!
     @IBOutlet var bgParallaxImageView: UIImageView!
+    
     // First page elements
     @IBOutlet var logoImageView: UIImageView!
     @IBOutlet var welcomeLabel: UILabel!
+    
     // AnimationViews
     var firstAnimationView: DeviceView!
     var secondAnimationView: LockView!
     var thirdAnimationView: ReceiptView!
     @IBOutlet var animationMockView: UIView!
     var hasSetUpAnimationViews = false
+    
     // Login view
     @IBOutlet var loginContainerView: UIView!
     @IBOutlet var loginContainerViewBottomConstraint: NSLayoutConstraint!

        if !hasSetUpAnimationViews{
            setupAnimationViews()
            hasSetUpAnimationViews = true
        }
    }
    
    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        
        getStartedButtonInitialBottomConstraint = getStartedButtonBottomConstraint.constant
        println(getStartedButtonInitialBottomConstraint)
        buttonInitialPostionY = getStartedButton.center.y
        logoInitialPositionY = logoImageView.center.y
        welcomeLabelInitialPositionY = welcomeLabel.center.y
        panBackground()

    @IBOutlet var getStartedButtonBottomConstraint: NSLayoutConstraint!
    var getStartedButtonInitialBottomConstraint:CGFloat!
    @IBOutlet var pageControll: UIPageControl!

    var logoInitialPositionY:CGFloat = 0
    var welcomeLabelInitialPositionY:CGFloat = 0
    
