transformOrigin(x, y, transformations)
Changes the origin of the transformations.
transformOrigin(x: Node, y: Node, transformations: AnimatedTransform): Node[]
Example:
<Viewstyle={{transform: transformOrigin(cx, cy, { rotateX })}}/>
Example usage with transform
.
const perspective = 800;const z = new Value(100);//...transform: [{ perspective }, translateZ(perspective, z)];