crumble: so bad but looks so cool
This commit is contained in:
parent
1cb7cb1e18
commit
03c9b5eceb
1 changed files with 7 additions and 2 deletions
|
@ -5,7 +5,7 @@ import { css, render_and_copy } from "./common.tsx";
|
|||
// we want outliers (a few letters falling before than others)
|
||||
// exponentials should do
|
||||
|
||||
const default_shaky_delay = (x: number) => 8 + 10 * x;
|
||||
const default_shaky_delay = (x: number) => 5 + 20 * x;
|
||||
export type DelayFn = (_: number) => number;
|
||||
|
||||
// exporting these in case they turn out to be useful
|
||||
|
@ -27,11 +27,12 @@ export const Shaky = ({
|
|||
</span>
|
||||
);
|
||||
|
||||
const default_fall_delay = (x: number) => (3 * x) ** 4;
|
||||
const default_fall_delay = (x: number) => 10 + 25 * x;
|
||||
// direction should be random but that doesn't need to be as custo
|
||||
// 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
|
||||
export const Fall = ({
|
||||
children,
|
||||
delay = 0,
|
||||
|
@ -41,8 +42,12 @@ export const Fall = ({
|
|||
}) => (
|
||||
<span
|
||||
style={{
|
||||
// transform: css.transform(css.translateY(css.rem(413))),
|
||||
// animation: `20s spin reverse linear ${delay}s once`,
|
||||
animationDelay: `${delay}s`,
|
||||
display: css.inline_block,
|
||||
}}
|
||||
class="bla"
|
||||
>
|
||||
{children}
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue