diff --git a/html/crumble.tsx b/html/crumble.tsx index a4897d3..1611932 100644 --- a/html/crumble.tsx +++ b/html/crumble.tsx @@ -32,7 +32,9 @@ const default_fall_delay = (x: number) => 10 + 25 * x; // well should it // i think i'll try without that first // a slow fall is fun -// i could have some weird hack where there's another copy that's hidden but that seems liek the wrong way to do it +// i could have some weird hack where there's another copy that's hidden but that seems like the wrong way to do it +// i think the best way to do it is jump-hackery (jump 0s in to the start +// (which is 0 displacement when reversed)), then wait, then jump to the real animation export const Fall = ({ children, delay = 0, @@ -42,9 +44,8 @@ export const Fall = ({ }) => ( { if (/[^\s]/.test(c)) { const seed = Math.random(); + const fall_delay = fall_delay_fn(seed); return ( - + {c} );