ICT30016-Assignment-3/node_modules/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs
dlawler489 a79a6afd34 intial
intial
2025-09-16 12:09:52 +10:00

14 lines
365 B
JavaScript

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 };