I saw my old garter, Scooty, do this when I introduced him to a friend's ribbon snake. The ribbon didn't respond, but he was doing it from behind her. *His head was behind hers, so there was no way she could've seen him.* Maybe it's the sound of the bobbing? Or just the rapid motion catches their eye. Or, if they do it every time they make body contact, maybe it's the touch?