click the animation palette button -
and add a horizontal right animation by clicking on the picture and dragging
it onto your cube in the viewport window
Click the play button to test it and if it looks ok then
go to file>export and set the export options to 'outlines'
and wait - swift renders pretty slowly.
The end result has a file size of about 4k.