Gravity TextSplit text into words that fall under gravity and collide with one another.Loading component…