ibex.ui.frame = thisbox; // this thread makes things spin. var rot = 0; ibex.thread = function(f) { while(true) { ibex.thread.sleep(100); if (ibex.math.floor(rot / 90) == rot / 90) $top.transform = "rotate(" + rot + ")"; $bot.transform = "rotate(" + (-2 * rot) + ")"; rot += 5; } }