Gleam - v1.0.2
    Preparing search index...

    Interface ShakeType

    Shape for a custom shake recipe.

    interface ShakeType {
        step: number;
        update: (updateCss: CssProxy, time: number) => void;
    }
    Index

    Properties

    Properties

    step: number

    Decay rate applied each frame: timer -= step * dt. Higher = shorter shake (3 ≈ ⅓s, 15 ≈ 1/15s).

    update: (updateCss: CssProxy, time: number) => void

    Per-frame mutator. time decays from 1 to 0 over the shake — multiply your intensity by it for a natural fall-off.