Code layers
A code layer is a small web page inside your scene: real HTML, CSS and JavaScript, or a React component. Use it for things that are easiest to build as a web page: a live UI, a CSS animation, a canvas drawing, a component from a library. It plays along with the timeline and shows up in every export.

Add a code layer
- Click Code in the Components panel's Kit tab (click Components under the Layers panel, then Kit) for a starter: a soft glowing blob drifting across the frame.
- Paste code on the canvas (⌘ Cmd+V): an HTML document or snippet, or a React (TSX or JSX) component.
- Paste a shadcn component: its
npx shadcn add …line, its registry link, or its page on ui.shadcn.com. - Drop an HTML file on the canvas. A HyperFrames project comes in whole.
- Drop a .tsx or .jsx file on the canvas, such as a Remotion composition.

The Code panel
Select a code layer and the Code panel opens beside the Layers panel. It hides while the piece plays.

- Code and Elements: edit the code, or click parts of the page to restyle them without touching the code. See Elements.
- W and H: the page's size in CSS pixels. It starts at the canvas size.
Where it sits:
- In front of the scene, or Behind it, showing wherever the scene is see-through.
- Fill frame stretches the page over the whole frame. In scene makes it a flat card in the 3D scene, with a position, rotation and scale like any layer.
- Parameters: the page's CSS variables as controls. Numbers become sliders and colors become swatches, each with a diamond, so you can animate them. Expose parameters… asks the assistant to add some.
- The editor. Changes apply a moment after you stop typing. Errors show under it, with Ask the assistant to fix.
Note
On a Fill frame layer, the Layout settings do nothing: the page always covers the frame. Choose In scene to move, turn and scale it.
Time in a code layer
The page runs on the timeline's clock, not the real one. Paraplex controls requestAnimationFrame, setTimeout, setInterval, performance.now() and Date.now(), and pauses and seeks CSS animations, transitions and videos. So whatever the page animates follows the playhead: scrub backward and it goes back, export and every frame is exact.
Time starts at the layer's clip: 0 where its clip begins.
For full control, a page can define window.renderAt(seconds), and Paraplex calls it with the time for each frame instead. It also understands GSAP timelines registered in window.__timelines, and HyperFrames' own player, as HyperFrames compositions use.
Import a HyperFrames project
HyperFrames is an open format for video made of HTML, and one that coding agents like Claude Code often write. A project is a folder: index.html, often more compositions in files of their own, and the pictures, videos, fonts and sound they use.
Bring one in any of these ways:
- Menu › Import HyperFrames project…, then choose the project's folder.
- Drop the folder, or a .zip of it, on the canvas.
- From Claude Code, with the
import_hyperframestool. See Connect an agent.
The whole project becomes one code layer at the size and length its root composition gives:
- Nested compositions (
data-composition-src) come from their own files. - Pictures, videos, fonts and stylesheets are packed into the layer, so it plays without the folder.
- The playhead drives HyperFrames' own player, so clip timings, starts like
intro + 0.5and nested timelines mean what they mean in HyperFrames. - Each
<audio>clip becomes a sound layer at its start, with its volume and fades, so you hear it and it's in your video export. - The timeline grows to the project's length if it's shorter.
Then finish it by hand: put Paraplex layers over or behind it, add camera moves and effects, and export.
Play a Remotion composition
Remotion compositions are React components that draw a video frame by frame. Paste one, or drop its .tsx file on the canvas, and it plays on the timeline's clock.
Paraplex answers its remotion import with its own version of the parts compositions use most, so no Remotion code runs:
useCurrentFrameanduseVideoConfig,<Sequence>,<Series>,<Loop>and<Freeze>,<AbsoluteFill>,<Img>and<Video>.interpolate,interpolateColors,spring,Easingandrandom.<Composition>: the layer takes its size, length and frame rate. Put it in the same file, or callregisterRoot.@remotion/google-fonts: the font loads from Google Fonts.
Note
A composition plays in one file. Sound from <Audio> isn't played: add the sound as an audio layer. Files from your project's public folder (staticFile) aren't there either, so use pictures by their web address.
Note
A project can pack up to 48 MB of files into its layer. For a longer piece, compress its videos first. HyperFrames' player loads from the web, so the layer needs an internet connection.
Restyle without code
Click the Elements tab, or double-click the selected layer's outline, to pick parts of the page. Change their Position, Width, Height, Opacity, Background, Text color, Radius, Font size, Weight, Letter spacing, Padding, Margin or Tilt. Your changes sit on top of the code, which stays as it was; Reset takes them off. Press Esc or click Done to leave.
To turn a page into ordinary Paraplex layers, right-click it and choose Code › Lift into layers.
What it can and can't do
- It runs in a sandbox, walled off from the app: no access to your projects, your account or your credits.
- It can load libraries and fonts from the web, so a page that does needs an internet connection.
- Storage, cookies, pop-ups and forms are blocked.
- In Preview and embeds it runs in real time and responds to the pointer.
Code from someone else
A code layer that came from someone else (a community piece, a link to make a copy of someone's work, a shared file) runs with a limit: it can load only from code libraries (esm.sh, jsDelivr, unpkg, cdnjs and Google Fonts), not from any other website. So a stranger's template can't track who opens it or send off what you type into it. The Code panel says From someone else at the top.
If you trust whoever made it and it needs other sites (pictures from a photo site, say), click Trust this code, then Allow. Your own code layers have no limit.