import { render_and_copy } from "./common.tsx"; const msg = `nice argument dweebus however i have already used cohost's css capabilities to make an animation of your post getting hit by a truck and 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(), ]; return [ `translate3d(${x.toFixed(2)}rem, ${y.toFixed(2)}rem, ${z.toFixed( 2 )}rem) /*rotate(${turns.toFixed(2)}turn)*/`, `translate3d(${-x.toFixed(2)}rem, ${-y.toFixed(2)}rem, ${-z.toFixed( 2 )}rem) /*rotate(${-turns.toFixed(2)}turn)*/`, ]; }; const Line = ({ children, width_ratio, length_s, delay_s, }: { children: string; width_ratio: number; length_s: number; delay_s: number; }) => (