3d spinning boxes with easing function