{"data":{"slug":"github-figma-mcp-server-guide-skills-figma-3d-transforms-f1e286cc5ba7","title":"Adding \/ Editing 3D Transforms","summary":"Add or edit 3D transforms \u2014 depth, perspective, z-axis rotation, tilt, isometric, and parallax looks that flat 2D rotation cannot express. Use whenever a request reaches into the third dimension \u2014 'make it 3D', 'add depth\/perspective', 'tilt\/rotate it back', 'z-plane', 'isometric', 'flip it like a card', 'parallax', 'vanishing point', 'receding into the distance', 'make it pop out'.","url":"https:\/\/skillshunter.net\/skills\/github-figma-mcp-server-guide-skills-figma-3d-transforms-f1e286cc5ba7","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-figma-mcp-server-guide-skills-figma-3d-transforms-f1e286cc5ba7","markdown_url":"https:\/\/skillshunter.net\/skills\/github-figma-mcp-server-guide-skills-figma-3d-transforms-f1e286cc5ba7.md","download_url":"https:\/\/skillshunter.net\/skills\/github-figma-mcp-server-guide-skills-figma-3d-transforms-f1e286cc5ba7\/download","category":{"slug":"product-design","name":"Product & Design"},"editor_note":"Before applying 3D transforms, ensure that `figma-use` is loaded and that the file context, node creation, and output rules are followed. If `transform3d` is unavailable, stop and explain that 3D transforms are not enabled in this session. Do not retry unsupported APIs or substitute a flat illustration without the user's agreement.","instructions":"---\nname: figma-3d-transforms\ndisable-model-invocation: false\ndescription: 'Add or edit 3D transforms \u2014 depth, perspective, z-axis rotation, tilt, isometric, and parallax looks that flat 2D rotation cannot express. Use whenever a request reaches into the third dimension \u2014 \"make it 3D\", \"add depth\/perspective\", \"tilt\/rotate it back\", \"z-plane\", \"isometric\", \"flip it like a card\", \"parallax\", \"vanishing point\", \"receding into the distance\", \"make it pop out\".'\n---\n\n# Adding \/ editing 3D transforms\n\nUse this skill when a request needs the third dimension and plain 2D rotation can't express it: perspective, depth, z-axis tilt, isometric layouts, card flips, parallax stacks, \"make it pop out of the screen.\"\n\nNot this skill:\n- Flat, in-plane rotation \u2192 set the node's 2D `rotation` instead; there's nothing 3D about it.\n\n## Animating 3D transforms\n\nA request may implicitly be a motion task. Assume it isn't unless the context suggests otherwise, the language describes a quality of movement (\"smoothly flips\", \"gently sways\"), or the field being changed is already keyframed. These are pointers; use the context you have. For a motion task, set the pose with this skill and keyframe it with `figma-use-motion`; don't deliver static poses or \"state\" frames in place of an animation.\n\nKeyframes override static 3D fields during playback, so before changing a node's `transform3d` or a container's `scene3d.perspective`, use `use_figma` to read `manualKeyframeTracks` and `animationStyles` on the node whose field you change. Edit keyframes on the fields being changed; other tracks (e.g. opacity) don't require animating the pose. If `manualKeyframeTracks` is `undefined`, Motion is unavailable: make static edits, and tell the user animation isn't available if the request needs it.\n\n## Runtime\n\nLoad `figma-use` before calling `use_figma` and follow its file context, node-creation, output, and verification rules. Include both skill names in `skillNames`, prefixing each with `resource:` when loaded through MCP resources. The recipes illustrate raw Plugin API geometry; adapt node creation to the workflow required by `figma-use` and apply poses after that workflow has materialized the nodes. Execute the Plugin API examples in the target file with `use_figma`.\n\n3D APIs depend on the calling user's feature availability. If `transform3d` is unavailable, stop and explain that 3D transforms are not enabled in this session. Do not retry unsupported APIs or substitute a flat illustration without the user's agreement.\n\n## User-facing language\n- Talk in plain terms: \"adding perspective\", \"tilting it back\", \"giving the scene depth\". Don't name these fields or the plugin API to the user, and don't surface raw error text.\n- Give brief progress updates (\"Setting up the 3D scene\u2026\", \"Tilting the cards\u2026\", \"Checking the result\u2026\").\n- For ambiguous styling, make a tasteful change; for ambiguous perspective, follow the decision rules below.\n\n## The three fields\n\n| Field | Lives on | Role |\n|---|---|---|\n| `node.transform3d` | any node | the per-element 3D pose |\n| `node.scene3d` | FRAME \/ COMPONENT \/ INSTANCE only | a shared 3D space for the container's children |\n| `node.transformOrigin` | any node | the pivot point the pose rotates around |\n\n### transform3d \u2014 the per-element pose\nWrite shape: `{ type: 'FIXED_ORDER', translateZ, rotateX, rotateY, rotateZ, backfaceVisible?, visible? }`\n- `translateZ` and all three `rotate*` are **required** on write; `backfaceVisible` and `visible` are optional and default to `true`.\n- **There is no per-element `perspective`** \u2014 it is not part of this shape, and passing it throws. All perspective lives on the container via `scene3d`.\n- Rotations are in **degrees**. The fields compose like CSS `transform: translateZ() rotateX() rotateY() rotateZ()`: the node is rotated first (Z, then Y, then X) and `translateZ` is applied last, along the **parent's** Z axis, not the direction the node faces. So a rotation plus `translateZ` on one node never pushes it out along its rotated normal; for that, rotate a wrapper instead (see the [carousel recipe](references\/carousels.md)).\n- **There is no X or Y translation** \u2014 `transform3d` only translates along Z. To move a node horizontally or vertically, set the node's own position (`node.x` \/ `node.y`); don't reach for a transform. So a scene of several children at different X\/Y spots is built by positioning each node, then applying `transform3d` for depth\/rotation on top.\n- Assigning `transform3d` **replaces the entire object** \u2014 omitting `backfaceVisible` or `visible` resets them to `true`. To change one axis, read the current value, spread it, and write the whole object back.\n- `{ type: 'NONE' }` clears the 3D transform.\n- The write is strict \u2014 extra keys are rejected.\n- Reads may return `type: 'FREEFORM'` on nodes imported from CSS \/ `matrix3d`. FREEFORM is **read-only**: you can detect it but cannot author it. Write a `FIXED_ORDER` object instead (it overwrites the freeform one).\n\n### scene3d \u2014 the shared 3D space (containers only)\nWrite shape: `{ perspective, preserve3d, visible? }` on a FRAME \/ COMPONENT \/ INSTANCE.\n- `perspective` and `preserve3d` are both **required** on write; `visible` is optional and defaults to `true`.\n- `preserve3d: true` = children share one 3D space and can overlap in depth (like CSS `preserve-3d`). `preserve3d: false` (the default \u2014 a container opts in) = children are projected flat onto the container's plane.\n- Reads return `null` when unconfigured \u2014 and an all-default scene reads back as `null`, so don't treat `null` as an error.\n- Writing `null`\/`undefined` clears it. On an INSTANCE, that opts the instance out of the backing component's scene.\n\n### transformOrigin \u2014 the pivot\nWrite shape: `{ x: { unit, value }, y: { unit, value } }`, where `unit` is `'PERCENT'` (50 = center) or `'PIXELS'`.\n- Defaults to centered (50% \/ 50%); reads return that default when unset. There is no way to reset it back to \"unset\" through the API.\n\n## Setting perspective\nDecide before posing the scene, in this order:\n1. Honor an explicit projection choice: perspective \u2192 a positive distance; orthographic \/ isometric \/ \"no perspective\" \u2192 `-1`, even for a single-axis tilt.\n2. Automatically add perspective for language implying **physical space**, **real depth**, or **going into \/ popping out of the screen**. Don't ask again.\n3. Also automatically add perspective when **only one node receives only an X or Y rotation**. Without it, a flat node only foreshortens and the depth direction is hard to see.\n4. For other new 3D requests, briefly ask whether to add perspective. Until confirmed, default to **no perspective**; \"make it 3D\" or \"make a cube\" alone does not authorize it. If asked to continue without an answer, proceed with no perspective. Preserve an existing projection when merely editing an established scene unless the user requests a change.\n\nFor perspective, start at least around 80% of the longest object\/scene dimension; use larger distances for a subtler look. Tiny distances can make geometry explode toward the camera. For no perspective, use `perspective: -1`. Any negative distance means none; `0` and positive distances below `1px` render as `1px`. Preserve authored distances in storage rather than rewriting them to the rendering minimum. A full six-face cube needs `preserve3d: true`; a three-face isometric cube uses independently posed faces in a flat container. See [cube recipes](references\/cubes.md) for both constructions.\n\n**Perspective always lives on the container.** `scene3d.perspective` is the only perspective the API exposes; elements themselves only carry rotation and `translateZ`. So a single tilted object and a whole fan of cards are built the same way: `scene3d` on the parent, `transform3d` on the child \/ children. One shared vanishing point is what makes a group read as a single coherent space.\n\n### Filled parent? Isolate the 3D children (do this by default)\nWhenever 3D-rotated children sit inside a container that has a **fill**, do NOT place them directly in it. With `scene3d.preserve3d: true` on that container the children share its 3D space, so their rotated geometry cuts *through* its fill plane \u2014 visible clipping. Structure the scene like this instead:\n- Leave the **filled parent** container at `scene3d.preserve3d: false`. It still carries the `perspective` \u2014 perspective projects the subtree whether or not the container preserves 3D.\n- Wrap the 3D children in an **intermediate frame** set to `scene3d.preserve3d: true`, and put the rotated children in that wrapper.\n\nThe wrapper keeps the children's shared 3D space and composites flat onto the parent's fill instead of intersecting it.\n\n### Never put `scene3d` perspective and `transform3d` on the same layer\nKeep the perspective one layer above the thing being transformed: the outer container holds `scene3d` (the perspective), an **intermediate frame** carries the `transform3d`, and the actual children sit inside that frame. If a node has both a `scene3d` perspective *and* its own `transform3d`, the perspective gets baked into the children *before* they're transformed \u2014 a cube then renders as a **frustum**.\n\n## Interpreting the ask\nCommon phrasings and the transform they usually mean (signs matter \u2014 getting them backwards tilts things the wrong way):\n- \"tilt it back\" \/ \"lean it back\" (top edge recedes from the viewer) \u2192 **positive** `rotateX`. \"Tilt forward\" \/ \"toward me\" \u2192 **negative** `rotateX`.\n- \"turn\/spin it to the side\" \/ \"swivel\" \u2192 `rotateY` (rotation about the vertical axis).\n- \"parallax\" \/ \"layered depth\" \u2192 several elements at different `translateZ` inside one `scene3d` container (not a single object). Larger `translateZ` gaps = stronger parallax.\n- Anything that **hinges around an edge or corner** rather than spinning in place \u2014 \"open like a door\", \"open like a book \/ pages\", \"fan out like petals\", \"unfold\", \"swing open\" \u2014 is a `transformOrigin` job. Move the pivot to the hinge (e.g. a door \u2192 `x: 0% \/ y: 50%` for the left edge; book pages \u2192 the shared spine; petals\/fan \u2192 the common base point), *then* apply the rotation. Leaving `transformOrigin` centered makes it rotate about the middle, which reads as spinning rather than hinging.\n- Leave `backfaceVisible` **on** (the default) for ordinary tilted elements. Set it `false` for distinct front\/back designs or the outward-facing surfaces of a solid cube (see the cube recipes); don't hide a normal card just because it turns past 90\u00b0.\n\n## Workflow\n1. Make any static (non-3D) design changes first; don't create or delete nodes unless the user asked.\n2. Work through the decisions under *Setting perspective*: perspective vs. orthographic, then which container carries the `scene3d.perspective`.\n3. Apply the appropriate rotation or translateZ via `transform3d`.\n4. Set `transformOrigin` only if the pivot should be off-center.\n5. Check work: read back `node.transform3d` \/ `node.scene3d` to confirm the values **and** export an image to confirm the pose actually *looks* right \u2014 a wrong rotation sign reads back fine but renders backwards.\n\n## Recipes\n\n**One element with depth** \u2014 the perspective goes on its parent container, the rotation on the element:\n```javascript\nconst container = await figma.getNodeByIdAsync('123:456'); \/\/ a FRAME\nconst node = container.children[0];\ncontainer.scene3d = { perspective: 600, preserve3d: true };\nnode.transform3d = { type: 'FIXED_ORDER', translateZ: 0, rotateX: 0, rotateY: 20, rotateZ: 0 };\n```\n\n**A coherent scene \/ several elements sharing depth, when perspective is selected** (a fan of cards, a stack of cards at different depths) \u2014 one container and many children. Use `perspective: -1` if perspective hasn't been requested or confirmed:\n```javascript\nconst container = await figma.getNodeByIdAsync('123:456'); \/\/ a FRAME\ncontainer.scene3d = { perspective: 800, preserve3d: true };\nfor (let i = 0; i < container.children.length; i++) {\n  const child = container.children[i];\n  child.transform3d = { type: 'FIXED_ORDER', translateZ: 10 * i, rotateX: 0, rotateY: 25 * i, rotateZ: 0 };\n}\n```\n\n**Ring \/ 3D carousel** \u2014 follow the [carousel recipe](references\/carousels.md). Rotate a transparent preserve-3D slot for each item, and apply only `translateZ` to the item inside it. Keep perspective on the scene above the ring and follow the perspective decision rules above.\n\n**Isometric cube** \u2014 follow the [three-face isometric recipe](references\/cubes.md#isometric-cube). Use exactly three square nodes with their own 3D poses in a transparent, flat frame\/group. Use `perspective: -1` for no perspective and place the viewing rotations on the faces.\n\n**Full six-face cube or arranging six selected faces** \u2014 follow the [six-face assembly recipe](references\/cubes.md#assemble-six-square-faces). Assemble perpendicular faces in a transparent preserve-3D frame, then rotate that frame to choose a view. Preserve the selected faces' artwork and descendants; their names may change.\n\n**Card flip \/ two-sided** \u2014 rotate past 90\u00b0 and hide the backface so the reverse doesn't show through:\n```javascript\nfrontFace.transform3d = { type: 'FIXED_ORDER', translateZ: 0, rotateX: 0, rotateY: 0, rotateZ: 0, backfaceVisible: false };\nbackFace.transform3d = { type: 'FIXED_ORDER', translateZ: 0, rotateX: 0, rotateY: 180, rotateZ: 0, backfaceVisible: false };\n```\n\n## Gotchas\n- **Opacity, blend mode, effects and clipping don't render on a preserve-3D frame itself** (the editor disables\n  them). Its children can still take them, unless they're preserve-3D frames too, but each child then blends on its\n  own, so overlapping children show through each other rather than fading as one group. To fade the group, put them\n  on a flat ancestor instead, keeping the existing hierarchy where you can:\n  - If the flat frame holding the perspective contains only what's being faded, apply them to it, or to a wrapper around it.\n  - Otherwise, wrap just the faded content in a new transparent frame (`fills = []`) at `x = 0, y = 0` inside the\n    frame holding the perspective, with that frame's width\n    and height, and `scene3d = { ...frame.scene3d, preserve3d: false }`. The original keeps its perspective for the\n    rest. The vanishing point stays put if the original uses the default centred perspective origin; a custom origin\n    can't be copied through the API. If that frame uses auto layout, the wrapper needs\n    `layoutPositioning = 'ABSOLUTE'`, which takes its content out of the flow, so only do this when the layout doesn't\n    depend on that content; otherwise apply them to each child.\n  - Also apply them to each child if the faded content must depth-sort with other 3D content.\n- `scene3d` exists only on FRAME \/ COMPONENT \/ INSTANCE \u2014 reading or writing it on other node types does nothing useful.\n- Assigning `transform3d` or `scene3d` replaces the whole object; spread the current value when editing a single field.\n- A lone X\/Y tilt without perspective only foreshortens; apply the perspective decision rules, not a blanket \"all 3D needs perspective\" rule.\n- Rotations are degrees, not radians.\n- If `node.transform3d` reads back `undefined`, the 3D transform capability isn't enabled in this environment. Don't silently produce nothing \u2014 tell the user 3D transforms aren't available here. `scene3d` exists only on FRAME, COMPONENT, and INSTANCE containers; `null` there means no scene is configured. An `undefined` `scene3d` on another node type does not indicate that 3D is unavailable.\n- Clipping \/ two objects intersecting or bleeding into each other in a 3D scene is usually a depth-sorting issue. `translateZ` drives the depth order, so nudge one object's `translateZ` outward (toward the viewer) to lift it cleanly above the other. (For a child clipping into its *filled parent*, see \"Filled parent? Isolate the 3D children\" above.)\n- `visible` should be left on for most cases, this is only turned off when the user explicitly wants to hide that `transform3d` or `scene3d` effect temporarily (rare).\n- Don't grep the plugin API docs for 3D transforms \u2014 use this skill; the shapes above are the full surface.\n","use_cases":["Make a card flip animation with parallax effect","Add depth to a flat 2D layout using isometric perspective","Create a 3D scene with vanishing points and receding depth"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/figma\/mcp-server-guide\/blob\/5f3024c3decd83ff6f0bfb3ef36a2c4cfbff961d\/skills\/figma-3d-transforms\/SKILL.md","source_commit":"5f3024c3decd83ff6f0bfb3ef36a2c4cfbff961d","license":null,"version":null,"listing_approved_at":"2026-11-22","created_at":"2026-11-21T12:03:12.000000Z","updated_at":"2026-11-22T11:17:19.000000Z","seo_title":"Add 3D transforms to design","seo_description":"Add or edit 3D transforms for depth, perspective, and isometric views. Use for 3D effects that 2D rotation cannot express.","seo_keywords":["add 3D transforms","create isometric design","make card flip animation","add depth to design","3D perspective effect"]}}