A fun Rubik's cube simulation I made years ago (~2014).
It can shuffle and solve the cube automatically, and you can try it manually too.
You can rotate the cube by dragging.
ES5 + some ES6, jQuery, plain CSS.
The whole cube is made from div
s, with various 3D transforms applied to them.
Just open rubik.html
from the filesystem. Preferably in Chrome.
Or you can just try it out here without downloading.
-
The editing feature is a bit buggy, but I couldn't be bothered to debug it.
-
The code is quite messy. I've cleaned it up a bit and sprinkled a little ES6 on it, but still.