Skip to main content

Function: throttledAnimLog()

function throttledAnimLog(message: string): void;

Defined in: utils/debug/lastAnimLog.ts:183

Logs animation progress messages to the console at most once every 500ms to prevent log flooding. Intended for development/debug logging only, and disabled in production builds.

This utility uses a closure to maintain state and throttle log messages, which is particularly useful for high-frequency events like animation frames or scroll handlers.

Parameters​

message​

string

The message to log to the console.

Returns​

void