Create a document in Photoshop that is Letter sized and facing the landscape direction.
Using your shape tools, you are going to create 2 rectangles on the top and the bottom on your document with a circle on the top of the bottom rectangle.
Go to Window at the top of your screen and select TIMELINE
Select the dropdown in the bottom middle of your screen and make sure to select Create Frame Animation
You will see a preview on the bottom left of your screen.
Click the square with the plus sign in the on the bottom left to add a new frame. From here you can move your pieces.
Click the play button to preview your animation.
You can also change the time for one or all of the frames by clicking underneath the frame.
File > Export > Save for Web (Legacy)
Don't change any settings and click save - a new window will come up.
Title your document and save it to your desktop.
Once you add it to Google Drive make sure to remove it from your desktop.