             return self.titleColorNormal
         }
     }
-
-    // MARK: - private method 
+    
+    // MARK: - private method
     
     private func configScrollPage() {
         guard self.titles.count > 0 else {

    @IBInspectable open var isZoomTitle: Bool = true // item's title zoom animation, default is true; if true, the titleFontSelected is does not work
    @IBInspectable open var maxItemScale: CGFloat = 1.2 // item's title max zoom scale, default is 1.2
    @IBInspectable open var splitLineViewHeight: CGFloat = 0.5 // bottom splitLine's height, default is 0.5
    @IBInspectable open var titleFontSizeNormal: CGFloat = 14 {
        didSet {
            self.titleFontNormal = UIFont.systemFont(ofSize: oldValue)
        }
    } // titleFontSize for normal, default is system 14
    @IBInspectable open var titleFontSizeSelected: CGFloat = 16 {
        didSet {
            self.titleFontSelected = UIFont.systemFont(ofSize: oldValue)
        }
    } // item's titleFontSize for selected, default is system 16
    
    open var titleFontNormal: UIFont = UIFont.systemFont(ofSize: 14) // item's titleFont for normal, default is system 14
    open var titleFontSelected: UIFont = UIFont.systemFont(ofSize: 16) // item's titleFont for selected, default is system 16
    

        if progress == 0 {
            progress = 1
        }
        
        //get next index
        var nextIndex = index
        if scrollView.contentOffset.x > scrollView.bounds.width * CGFloat(index) {
