     }
     
     func setupTimer() {
-        let timer = Timer.scheduledTimer(timeInterval: 2, target: self, selector: #selector(automaticScroll), userInfo: nil, repeats: true)
+        let timer = Timer.scheduledTimer(timeInterval: 3, target: self, selector: #selector(automaticScroll), userInfo: nil, repeats: true)
         RunLoop.main.add(timer, forMode: .commonModes)
         self.timer = timer
     }

            }
            return
        }
        collectionView?.scrollToItem(at: NSIndexPath(item: targetIndex, section: 0) as IndexPath, at: .right, animated: true)
    }
    
    func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
        invalidateTimer()
    }
    

    var pageDotColor: UIColor = UIColor.lightGray // 其他分页控件小圆标颜色
    //    var currentPageDotImage: UIImageView // 当前分页控件小圆标图片
    //    var pageDotImage: UIImageView // 其他分页控件小圆标图片
    var animation = CATransition()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
