hammerspoon2-docs
    Preparing search index...

    Variable animationDuration

    animationDuration: number

    How many seconds changes to a window's frame are animated over, when they don't give a duration of their own. Defaults to 0.2, like Hammerspoon 1. Set it to 0 to change frames straight away.

    This applies to setting a window's frame, to moveAndResize() without a duration, and to the layout functions such as hs.window.moveToLeftHalf(). Setting a window's position or size is never animated. Windows are moved a step at a time through the Accessibility API, so an application that's slow to respond, or that redraws slowly, animates less smoothly.