Index of every page on this site: llms.txt
All skills
figma avatar

/figma-3d-transforms

@43a06ff official
by figmafigma/mcp-server-guide2.2k stars
218
Run it yourself

Add or edit 3D transforms — 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 — "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".

Use this Skill: https://skilld.dev/gh/figma/mcp-server-guide/figma-3d-transforms

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencescarousels.md

≈679 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Ring / 3D carousel

Arrange three or more items around a circle, each facing outward. On one node, translateZ moves along the parent's Z axis, regardless of that node's rotation. Instead, rotate a transparent preserve-3D slot and push its child outward with translateZ.

Use a transparent, unclipped frame for the ring, with manual positioning. Every item and slot must share the ring's centre. Put the ring inside a scene frame (FRAME, COMPONENT or INSTANCE); if it is on a page or inside a group, add a scene frame first. Keep a filled background on that outer scene, with preserve3d: false, so the rear cards don't intersect its fill.

The example assumes ring is a frame containing only the items to arrange and scene is its parent scene frame. For existing artwork, reuse the item nodes and preserve their descendants. The example sets a new scene's perspective to -1 (none); choose a positive distance only when the main skill's perspective decision rules call for it, and preserve the existing projection when editing an established scene.

const items = [...ring.children];
const perspective = -1; // Use the projection chosen by the main skill's decision rules.
scene.scene3d = { perspective, preserve3d: false };
ring.layoutMode = 'NONE';
ring.fills = [];
ring.clipsContent = false;
ring.transformOrigin = {
  x: { unit: 'PERCENT', value: 50 },
  y: { unit: 'PERCENT', value: 50 },
};
ring.scene3d = { perspective: -1, preserve3d: true };
const radius = 300; // Choose at least maxItemWidth / (2 * Math.tan(Math.PI / items.length)).
items.forEach((item, i) => {
  const slot = figma.createFrame();
  slot.name = `Slot ${i + 1}`;
  slot.fills = [];
  slot.clipsContent = false;
  slot.resize(item.width, item.height);
  ring.appendChild(slot);
  slot.x = (ring.width - slot.width) / 2;
  slot.y = (ring.height - slot.height) / 2;
  slot.appendChild(item);
  item.rotation = 0;
  item.x = 0;
  item.y = 0;
  item.transformOrigin = {
    x: { unit: 'PERCENT', value: 50 },
    y: { unit: 'PERCENT', value: 50 },
  };
  slot.scene3d = { perspective: -1, preserve3d: true };
  slot.transform3d = { type: 'FIXED_ORDER', translateZ: 0, rotateX: 0, rotateY: (360 / items.length) * i, rotateZ: 0 };
  item.transform3d = { type: 'FIXED_ORDER', translateZ: radius, rotateX: 0, rotateY: 0, rotateZ: 0 };
});

To turn the whole carousel, rotate ring (rotateY), not the items. Keep perspective on scene, one layer above the ring's transform.

Verify that the item centres lie on a radius-radius circle in the XZ plane and the faces point outward. Inspect a second whole-ring orientation to check that the slots share a pivot and the rear cards remain visible where unobstructed.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts3d3 checks · Risk SAFE
  • Gen Agent Trust Hub4d

    The skill provides legitimate instructions and code templates for managing 3D transformations in Figma using official Plugin APIs. No security risks were identified.

  • Socket3d

    No alerts

  • Snyk4d

    Risk: LOW · No issues

Signed by skilld at 43a06ff. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 5 days ago
disable-model-invocation
false

README badge

README badge for figma/mcp-server-guide/figma-3d-transforms