Színkorrekciók

This commit is contained in:
2025-08-23 00:05:18 +02:00
parent 34a6df5949
commit a1ff3beb35
471 changed files with 63615 additions and 6 deletions
@@ -0,0 +1,17 @@
import { observeTimeline } from 'motion-dom';
import { getTimeline } from './utils/get-timeline.mjs';
function attachToAnimation(animation, options) {
const timeline = getTimeline(options);
return animation.attachTimeline({
timeline: options.target ? undefined : timeline,
observe: (valueAnimation) => {
valueAnimation.pause();
return observeTimeline((progress) => {
valueAnimation.time = valueAnimation.duration * progress;
}, timeline);
},
});
}
export { attachToAnimation };