ParallaxView with scroll effect
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Example ##1.0.5 Jun 6, 2018
MMParallaxView #1.0.7 Jun 26, 2018
demoGIF 1.Add gif Jun 5, 2018
.swift-version ##1.0.0 Jun 5, 2018
.travis.yml no message Jun 5, 2018
LICENSE no message Jun 5, 2018
MMParallaxView.podspec #1.0.7 Jun 26, 2018 Update Jun 5, 2018


CI Status Version License Platform

demo1 demo2


//Find your parallaxView in sub viewController
public var parallax: MMParallaxView.MMParallaxView? { get }


//Set top view
@IBOutlet weak public var parallaxTopView: UIView?
//Set bottom view
@IBOutlet weak public var parallaxBottomView: UIView?
//mask on Top View
public var maskAlpha: CGFloat
//set parallaxBottomView margin with view top
public var topMargin: CGFloat
//scroll observer
public var shiftStatus: ((MMParallaxView.MMParallaxView.ShiftStatus) -> Swift.Void)?
//set parallaxTopView height
public var heightType: MMParallaxView.MMParallaxView.TopHeightType
public var parallaxBottomOffsetTop: CGFloat
//set top view shift rate when you scroll bottom view (value need >= 1)
public var parallaxTopShiftRate: CGFloat
// value 0-1 to pause view when animate stop
public var pauseLocation: CGFloat?
public var status: MMParallaxView.MMParallaxView.ShiftStatus
required public init?(coder aDecoder: NSCoder)
public func showTopView()
public func hideTopView()
public func set(topView: UIView, bottomView: UIView, topHeight: MMParallaxView.MMParallaxView.TopHeightType)


iOS 10.0+
Xcode 8.0+
Swift 3.0+, 4.0+


MMParallaxView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'MMParallaxView'



MMParallaxView is available under the MIT license. See the LICENSE file for more info.