creating scrolling animation