make scroll position and origin available to transition code