kamijoutouma

merp

Dec 3rd, 2015
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (thisditto.width() < $(window).width()/8) {
  2.   thisditto.width(thisditto.width()*1.4);
  3.   thisditto.height(thisditto.height()*1.4);
  4.   thisditto.css({ opacity: 1.00 });
  5.   //animate this with queue:false
  6.   //add opacity
  7. }else if (thisditto.width() < $(window).width()/4) {
  8.   thisditto.width(thisditto.width()*1.3);
  9.   thisditto.height(thisditto.height()*1.3);
  10.   thisditto.css({ opacity: 0.75 });
  11.   //animate this with queue:false
  12.   //add opacity
  13. }else if (thisditto.width() < $(window).width()/2){ // slow down, barely
  14.   thisditto.width(thisditto.width()*1.1);
  15.   thisditto.height(thisditto.height()*1.1);
  16.   thisditto.css({ opacity: 0.50 });
  17. }else if (thisditto.width() < $(window).width()){ // slow down, barely OMG SO SLOW
  18.   thisditto.width(thisditto.width()*1.01);
  19.   thisditto.height(thisditto.height()*1.01);
  20.   thisditto.css({ opacity: 0.25 });
  21. }else if (thisditto.width() < $(window).width()*2){ // slow down, barely OMG SO SLOW e.e
  22.   thisditto.width(thisditto.width()*1.001);
  23.   thisditto.height(thisditto.height()*1.001);
  24.   thisditto.css({ opacity: 0.15 });
  25. }else{ // Its gotten to 2x browser window resolution so kill it
  26.   thisditto.parent().remove();
  27.   ditto--;
  28.   kongakongakonga();
  29.   if ((Math.floor(Math.random() * 3)) < 1) {kongakongakonga();}
  30. }
Advertisement
Add Comment
Please, Sign In to add comment