It is simple physics. I love to do it with my daughter - school staff is so boring.
So - how to do it? Simple - put a paper on top of the glass, flip, place on table, gently remove paper.