jackrabbit-d
2/22/2018 - 3:17 PM

CK's Future Easter Egg

Don't look if you're not me.

function getRand(){ return Math.round(Math.random()); }
var left = 0,
    top = 0;
$('.btn.ee').on('mouseover',function(){
    if(getRand() == 0){
        if(getRand() == 0){
            left -= 100;
        }else{
            left += 100;
        }
        top += Math.round(Math.random() * 100 - 50);
    }else{
        if(getRand() == 0){
            top += -50;
        }else{
            top += 50;
        }
        left += Math.round(Math.random() * 200 - 100);
    }
    $(this).css('transform','translate('+top+'px, '+left+'px)');
});