-(void)setBgContentOffsetAnimation:(CGFloat )OffsetX { [UIView animateWithDuration:.25 animations:^ { self.mainScrollView.contentOffset = CGPointMake(OffsetX, 0); }]; }