Skip to content

Commit cd83d61

Browse files
committed
NOT FOR LANDING: a mutant that plays any non-Bezier easing as linear
The reader still finds a curve, but ignores the browser's easing.
1 parent 335293f commit cd83d61

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎packages/core/src/motion/themeTiming.ts‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,8 @@ function browserEasing(
149149
// The browser throws on an easing it cannot play.
150150
return null;
151151
}
152-
return x => {
153-
animation.currentTime = Math.min(1, Math.max(0, x)) * 1000;
154-
return animation.effect?.getComputedTiming().progress ?? 1;
155-
};
152+
// NOT FOR LANDING: the mutant ignores the browser's easing.
153+
return x => (animation == null ? 1 : x);
156154
}
157155

158156
/**

0 commit comments

Comments
 (0)