avoid-divide-by-zero
Dominic Gannaway 6 months ago
parent 00b5278da3
commit 47ae9ddc73

@ -28,8 +28,8 @@ export function flip(node, { from, to }, params = {}) {
css: (t, u) => {
const x = u * dx;
const y = u * dy;
const sx = t + (u * from.width) / to.width;
const sy = t + (u * from.height) / to.height;
const sx = t + (u * from.width) / to_width;
const sy = t + (u * from.height) / to_height;
return `transform: ${transform} translate(${x}px, ${y}px) scale(${sx}, ${sy});`;
}
};

Loading…
Cancel
Save