Cube – Automatic rotation

Example:

Reference: