Skip to content

🎥 Make videos programmatically with React

fix artifacts

Jonny Burgerc6e293317111
diff --git a/packages/example/src/3DContext/FrontFace.tsx b/packages/example/src/3DContext/FrontFace.tsx
index 06ec809948..4f165650c0 100644
--- a/packages/example/src/3DContext/FrontFace.tsx
+++ b/packages/example/src/3DContext/FrontFace.tsx
@@ -16,7 +16,7 @@ export const Face: React.FC<{
const frontFace = reduceMatrices([
type === 'back' ? scaleX(-1) : null,
- translateZ(type === 'front' ? -depth * 0.49 : 0.49 * depth),
+ translateZ(type === 'front' ? -depth * 0.48 : 0.48 * depth),
useTransformations(),
]);
diff --git a/packages/example/src/Compose/Captions.tsx b/packages/example/src/Compose/Captions.tsx
index 36f8cf7598..356f652cf6 100644
--- a/packages/example/src/Compose/Captions.tsx
+++ b/packages/example/src/Compose/Captions.tsx
@@ -44,9 +44,8 @@ const Token: React.FC<{
background: active ? '#0983F1' : 'white',
paddingTop: 3,
paddingBottom: 3,
- outline: active ? '4px solid ' + '#0983F1' : 'none',
color: active ? 'white' : 'black',
- border: active ? '2px solid #0983F1' : '1px solid transparent',
+ border: active ? '2px double #0983F1' : '1px solid transparent',
borderRadius: 5,
scale: String(1 + jump * 0.1),
};
diff --git a/packages/example/src/Compose/Compose.tsx b/packages/example/src/Compose/Compose.tsx
index 6bb2fa6eab..a117fd8a75 100644
--- a/packages/example/src/Compose/Compose.tsx
+++ b/packages/example/src/Compose/Compose.tsx
@@ -102,7 +102,7 @@ const VideoLayers: React.FC<{
borderRadius: cornerRadius,
overflow: 'hidden',
fontFamily: 'GT Planar',
- backgroundColor: 'white',
+ backgroundColor: 'black',
border: '3px solid black',
}}
className="text-black flex justify-center items-center font-sans text-2xl font-bold flex-1"