Skip to content

🎥 Make videos programmatically with React

grabbing hands

Jonny Burgercb8cb01a5813
diff --git a/packages/docs/src/remotion/HomepageVideo/Card.tsx b/packages/docs/src/remotion/HomepageVideo/Card.tsx
index fc39d0422c..0db154372e 100644
--- a/packages/docs/src/remotion/HomepageVideo/Card.tsx
+++ b/packages/docs/src/remotion/HomepageVideo/Card.tsx
@@ -187,6 +187,7 @@ const Card: React.FC<{
let translateX = 0;
let translateY = 0;
refToUse.current.classList.add(styles.active);
+ refToUse.current.style.cursor = 'grabbing';
const onMove = (evt: PointerEvent) => {
refsToUse.forEach((r) => {
@@ -247,6 +248,8 @@ const Card: React.FC<{
refToUse.current.style.left = `${cardLeft + translateX}px`;
refToUse.current.style.top = `${cardTop + translateY}px`;
refToUse.current.style.transform = `translateX(0px) translateY(0px)`;
+ refToUse.current.style.cursor = 'grab';
+
refToUse.current.removeEventListener('pointermove', onMove);
applyPositions(null);
},
@@ -280,6 +283,7 @@ const Card: React.FC<{
border: `1px solid ${color}`,
borderRadius: 13,
overflow: 'hidden',
+ cursor: 'grab',
}}
>
<AbsoluteFill
diff --git a/packages/docs/src/remotion/Root.tsx b/packages/docs/src/remotion/Root.tsx
index 916c6751c9..9fa4d6577a 100644
--- a/packages/docs/src/remotion/Root.tsx
+++ b/packages/docs/src/remotion/Root.tsx
@@ -75,6 +75,10 @@ export const RemotionRoot: React.FC = () => {
fps={30}
defaultProps={{
theme: 'light',
+ location: {
+ country: 'US',
+ city: 'New York',
+ },
}}
schema={schema}
/>