distance api
Added scrolling animation