From the AnimationWorklet WIP.md[0], we need a 'WorkletAnimation' class for users to pass in. Based on that doc, the class is a simple PoD which is constructed from:
i. A non-empty sequence of KeyframeEffects
ii. A non-empty sequence of either DocumentTimeline or ScrollTimelines
iii. A dictionary for extra user data (which may be empty).
It does not even need to have the inputs be JS-readable, as far as I can tell.
[0]: https://github.com/WICG/animation-worklet/blob/gh-pages/WIP.md
Comment 1 by smcgruer@chromium.org
, May 10 2017