The downloadable file includes a CSS code that demonstrates how to create a CSS transition between left, right, top, and bottom. On the screenshot below, the red background is the container and the yellow box is the one that slides between left, right, top and bottom.
Download:
Click here to download