Skip to content

🎥 Make videos programmatically with React

fix directions! lol

Jonny Burger1f49dbb64211
diff --git a/packages/transitions/src/presentations/flip.tsx b/packages/transitions/src/presentations/flip.tsx
index 543614e35e..0eb585c4e9 100644
--- a/packages/transitions/src/presentations/flip.tsx
+++ b/packages/transitions/src/presentations/flip.tsx
@@ -26,9 +26,9 @@ const Flip: React.FC<
}) => {
const style: React.CSSProperties = useMemo(() => {
const startRotationEntering =
- direction === 'from-left' || direction === 'from-bottom' ? 180 : -180;
+ direction === 'from-right' || direction === 'from-top' ? 180 : -180;
const endRotationEntering =
- direction === 'from-left' || direction === 'from-bottom' ? -180 : 180;
+ direction === 'from-right' || direction === 'from-top' ? -180 : 180;
const rotation =
presentationDirection === 'entering'