'Apply sliding visualization to a 2048 game in Vanilla JavaScript

I have wrote the code for a playable version of 2048. But I am stuck on creating a sliding effect for the tiles. Each "tile" is an individual div. Would you approach this through CSS or JavaScript? What would be good tools to approach this?

The current version of the game can be seen on the following link: https://liorc1987.github.io/2048/



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source