Parallax Effect with Motion Device
8 мая 2017, 14:54
Формула Parallax
var parallaxImageHeight: CGFloat { let maxOffset = (sqrt( cellHeight * cellHeight + 4 * parallaxSpeed * self.tableView.frame.height) - cellHeight) / 2 return maxOffset + self.cellHeight }
Твитнуть
Поделиться
Поделиться
Популярное