JSFiddle - React, Tailwind, and code Playground

by Marco Iamonte

JavaScript

(function(){
	var banana = "Banana";
  
  for ( var i = 0; i <= Math.floor((Math.random() * 1500) +1); ++i) {
  	var wsize = {
    	'fullWidth' : window.innerWidth,
      'fullHeight': window.innerHeight
    };
    var elem = document.createElement("div");
    elem.textContent = banana;
    elem.style.position = "fixed";
    elem.style.fontSize = Math.round(Math.random() * 60) + "px";
    elem.style.transform = "rotate(" + Math.round(Math.random()*180) +"deg)";
    elem.style.left = Math.round(Math.random() * wsize.fullWidth) + "px";
    elem.style.top = Math.round(Math.random() * wsize.fullHeight) + "px";
    document.body.appendChild(elem);
  }
})();