When a player is next to be up, they are in the "on deck" circle. Usually they will stick a weight onto their bat and swing it around, which then makes the bat seem lighter when they are at the plate. Baseball is a sport with many superstitions. What the player does one getting to the plate may be what they did the last time they hit a home run, so they think it will bring luck. On the other hand, if they struck out last time, they may avoid what they did then. Some may even make moves meant to distract and annoy the pitcher, Ichiro was a good example, the way he stuck his bat straight out.
See:
https://fansided.com/files/2013/07/7409252.jpg