first commit
This commit is contained in:
14
node_modules/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs
generated
vendored
Normal file
14
node_modules/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
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 };
|
||||
Reference in New Issue
Block a user