Files
ai-course/node_modules/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs

15 lines
365 B
JavaScript
Raw Normal View History

import { NativeAnimation } from './NativeAnimation.mjs';
class NativeAnimationWrapper extends NativeAnimation {
constructor(animation) {
super();
this.animation = animation;
animation.onfinish = () => {
this.finishedTime = this.time;
this.notifyFinished();
};
}
}
export { NativeAnimationWrapper };