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