UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

37 lines (36 loc) 950 B
/** * DevExtreme (esm/__internal/ui/multi_view/multi_view.animation.js) * Version: 25.2.7 * Build date: Tue May 05 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { fx } from "../../../common/core/animation"; import { move } from "../../../common/core/animation/translator"; export const _translator = { move($element, position) { move($element, { left: position }) } }; export const animation = { moveTo($element, position, duration, completeAction) { fx.animate($element.get(0), { type: "slide", to: { left: position }, duration: duration, complete: completeAction }) }, complete($element) { fx.stop($element.get(0), true) } };