Take another look at the sentence:
Knocking the baseball into the stands, the homerun was cheered by the fans.
Knocking the baseball into the stands, a participle phrase, comes right before homerun, an illogical target. The player, not the play itself, did the scoring!
Before you continue, review the rules for misplaced and dangling modifiers.