How do I create a circle appears and floats circles but doesnt move out of the frame? something like the example below

Hi idea about bouncing