Building Motion Graphics with Cursor and Remotion
Lukas Margeriego watch the original →
the gist
Use Cursor's Design Mode to visually edit Remotion compositions by sketching layouts, applying transitions from documentation, and regenerating animations via Higgsfield.
Visual Composition Editing
Developers can use Cursor's Design Mode to manipulate Remotion projects without manual code adjustments. By opening the Remotion local development URL inside the Cursor browser, users can select UI elements and issue natural language commands to modify styles, such as removing specific visual elements, changing colors, or adjusting padding and corner radii. The AI agent interprets these requests and updates the underlying React code in real-time.
Layout and Transition Automation
Layouts can be prototyped by sketching on an Excalidraw whiteboard and instructing the AI to apply that structure to the composition. Transitions are implemented by referencing the Remotion documentation; users select a target container and prompt the AI to analyze a specific transition (e.g., slide or cross-zoom) from the docs and apply it between scenes. Existing video assets can be integrated by placing them in a project subfolder and prompting the agent to replace specific image placeholders with the local video files.
Reverse-Engineering Animations
Complex animations can be reconstructed by taking screenshots of reference material and providing them to the AI as a sequence. Users define the motion path (e.g., "start on the left, go down, travel, and land on the right") and provide image assets for the AI to swap into the scene. The Higgsfield integration allows for the generation of these video segments based on the provided reference images and motion descriptions, which can then be appended to the final composition.