SHOW:
|
|
- or go back to the newest paste.
1 | - | function r() {return ((Math.random() - 0.5) * 600) + 'px'};var q = document.createElement; document.createElement = function() {var p = q('marquee'); p.style.transform = `translate3d(${r()}, ${r()}, ${r()})`; return p} |
1 | + | function rpx() {return ((Math.random() - 0.5) * 600) + 'px'}; |
2 | function rdg() {return ((Math.random() - 0.5) * 360) + 'deg'}; | |
3 | var q = document.createElement; | |
4 | document.createElement = function() { | |
5 | var p = q('marquee'); | |
6 | p.style.transform = `translate3d(${rpx()}, ${rpx()}, ${rpx()}) rotateX(${rdg()}) rotateY(${rdg()}) rotateZ(${rdg()})`; | |
7 | return p | |
8 | } |