UNPKG

@lynx-js/web-core

Version:

This is an internal experimental package, do not use

18 lines 715 B
// Copyright 2023 The Lynx Authors. All rights reserved. // Licensed under the Apache License Version 2.0 that can be found in the // LICENSE file in the root directory of this source tree. import { triggerElementMethodEndpoint } from '../../endpoints.js'; export const createElement = (elementId, uiThreadRpc) => { const triggerElementMethod = uiThreadRpc.createCall(triggerElementMethodEndpoint); return { animate(operation, id, keyframes, timingOptions) { triggerElementMethod('animate', elementId, { operation, id, keyframes, timingOptions, }); }, }; }; //# sourceMappingURL=createElement.js.map