devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
38 lines (37 loc) • 1.14 kB
JavaScript
/**
* DevExtreme (cjs/__internal/ui/multi_view/m_multi_view.animation.js)
* Version: 24.2.6
* Build date: Mon Mar 17 2025
*
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.animation = exports._translator = void 0;
var _animation = require("../../../common/core/animation");
var _translator2 = require("../../../common/core/animation/translator");
const _translator = exports._translator = {
move($element, position) {
(0, _translator2.move)($element, {
left: position
})
}
};
const animation = exports.animation = {
moveTo($element, position, duration, completeAction) {
_animation.fx.animate($element, {
type: "slide",
to: {
left: position
},
duration: duration,
complete: completeAction
})
},
complete($element) {
_animation.fx.stop($element, true)
}
};