From having India on the mat, to almost being pinned out themselves, Lanka had to go through a merry-go-round of emotions.
http://m.cricbuzz.com/cricket-commentary/19190/ind-vs-sl-1st-test-sri-lanka-tour-of-india-2017
Is "From having India on the mat to almost being pinned out themselves" a prepositional phrase acting as an adverb?
Having India on the mat= gerund phrase Object of preposition to From
being pinned out themselves: passive phrase as an object to preposition to
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.