diff --git a/html/crash.tsx b/html/crash.tsx new file mode 100644 index 0000000..71c9f26 --- /dev/null +++ b/html/crash.tsx @@ -0,0 +1,102 @@ +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 = () => + `translate3d(${(-Math.random() * 10).toFixed(2)}rem, ${( + (Math.random() - 0.5) * + 20 + ).toFixed(2)}rem, ${((Math.random() - 0.5) * 6).toFixed( + 2 + )}rem) rotate(${Math.random()}turn)`; + +const Line = ({ + children, + width_ratio, + length_s, + delay_s, +}: { + children: string; + width_ratio: number; + length_s: number; + delay_s: number; +}) => ( +