Interface ShakyEffectParams

interface ShakyEffectParams {
    intensity?: number;
    speed?: number;
    mode?: ShakyMode;
    decayDuration?: number;
}

Properties

intensity?: number

Max pixel displacement in either axis. Default 4.

speed?: number

How fast the shake evolves per second. Default 8.

mode?: ShakyMode

"random" = jump between random offsets (mechanical jitter) "sine" = smooth wobble on both axes (loose panel / handheld feel) "perlin" = smooth organic non-repeating drift (gentle handheld camera) "circular" = offset traces a circle, the whole frame orbits "horizontal" = shake locked to the X axis only "vertical" = shake locked to the Y axis only "decay" = one-shot impact: strong at the trigger, settles to still. Re-fire it with triggerShake(). Default "random".

decayDuration?: number

For "decay" mode only: how long (seconds) one impact takes to settle. Default 0.6.