Functional windowAnimationRunner constructor