Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let duration = 1000;
- let elementene = document.querySelectorAll("*");
- function startfuck(){
- for(let element of elementene) {
- element.style.display = "block";
- element.style.position = "fixed";
- element.style.transition = duration + "ms";
- }
- }
- function fuck(){
- for(let element of elementene) {
- element.style.top = Math.random()*700 + "px";
- element.style.left = Math.random()*1000 + "px";
- element.style.color = "#"+((1<<24)*Math.random()|0).toString(16);
- }
- }
- startfuck();
- setInterval(fuck, duration);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement