UNPKG

@wix/design-system

Version:

@wix/design-system

24 lines (21 loc) 819 B
### dataHook - type: string - description: Applied as data-hook HTML attribute that can be used in the tests ### children - type: ReactNode - description: The component which we would like to animate. ### active - type: boolean - description: Triggers the animation transition ### onStart - type: (event: AnimationEvent<HTMLDivElement>) => void - description: A callback fired immediately after the animation starts. ### onEnd - type: (event: AnimationEvent<HTMLDivElement>) => void - description: A callback fired immediately after the animation ends. ### loop - type: boolean - description: when set to true, the child component animate repetitively until stopped by other event ### delay - type: string | number - description: set a delay before the animation execution. When provided a number- sets this as `ms`.