change center position based on scroll position