/** * DevExtreme (animation/fx.d.ts) * Version: 21.1.7 * Build date: Thu Aug 07 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { DxElement, } from '../core/element'; import { DxPromise, } from '../core/utils/deferred'; /** * @docid * @namespace DevExpress * @type object */ export interface animationConfig { /** * @docid * @type_function_param2 config:object * @public */ complete?: (($element: DxElement, config: any) => void); /** * @docid * @default 0 * @public */ delay?: number; /** * @docid * @type Enums.Direction * @default undefined * @public */ direction?: 'bottom' | 'left' | 'right' | 'top'; /** * @docid * @default 400 * @public */ duration?: number; /** * @docid * @default 'ease' * @public */ easing?: string; /** * @docid * @default {} * @public */ from?: number | string | any; /** * @docid * @default undefined * @public */ staggerDelay?: number; /** * @docid * @type_function_param2 config:object * @public */ start?: (($element: DxElement, config: any) => void); /** * @docid * @default {} * @public */ to?: number | string | any; /** * @docid * @type Enums.AnimationType * @default 'custom' * @public */ type?: 'css' | 'fade' | 'fadeIn' | 'fadeOut' | 'pop' | 'slide' | 'slideIn' | 'slideOut'; } /** * @public * @docid * @section utils * @namespace DevExpress */ declare const fx: { /** * @docid * @publicName animate(element, config) * @return Promise * @namespace DevExpress.fx * @public */ animate(element: Element, config: animationConfig): DxPromise; /** * @docid * @publicName isAnimating(element) * @namespace DevExpress.fx * @public */ isAnimating(element: Element): boolean; /** * @docid * @publicName stop(element, jumpToEnd) * @namespace DevExpress.fx * @public */ stop(element: Element, jumpToEnd: boolean): void; }; export default fx;