diff --git a/html/crash.tsx b/html/crash.tsx index 8ea438c..0ee0fa7 100644 --- a/html/crash.tsx +++ b/html/crash.tsx @@ -7,20 +7,19 @@ scattering letters everywhr`.split("\n"); // i like the freezing effect, but it's probably not right here; const explode_transform = (): [string, string] => { - const [x, y, z, turns] = [ - -Math.random() * 10, - (Math.random() - 0.5) * 20, - (Math.random() - 0.5) * 6, - Math.random(), + const [x, y, turns] = [ + Math.random() * 20 + 35, + (Math.random() - 0.5) * 10, + Math.random() * 10, ]; return [ - `translate3d(${x.toFixed(2)}rem, ${y.toFixed(2)}rem, ${z.toFixed( + `translate(${x.toFixed(2)}rem, ${y.toFixed( 2 - )}rem) /*rotate(${turns.toFixed(2)}turn)*/`, - `translate3d(${-x.toFixed(2)}rem, ${-y.toFixed(2)}rem, ${-z.toFixed( + )}rem) rotate(${turns.toFixed(2)}turn)`, + `rotate(${-turns.toFixed(2)}turn) translate(${-x.toFixed( 2 - )}rem) /*rotate(${-turns.toFixed(2)}turn)*/`, + )}rem, ${-y.toFixed(2)}rem)`, ]; }; @@ -38,8 +37,8 @@ const Line = ({