Skip to content

🎥 Make videos programmatically with React

Update index.tsx

Jonny Burgerbbe2704ca0ae
diff --git a/packages/example/src/Premount/index.tsx b/packages/example/src/Premount/index.tsx
index e4403b7a89..2198fcf713 100644
--- a/packages/example/src/Premount/index.tsx
+++ b/packages/example/src/Premount/index.tsx
@@ -27,7 +27,8 @@ const Premount: React.FC<
const style = useMemo(() => {
return {
...passedStyle,
- opacity: active ? 0.5 : 1,
+ opacity: active ? 0 : 1,
+ pointerEvents: active ? 'none' : passedStyle?.pointerEvents ?? 'auto',
};
}, [active, passedStyle]);