Skip to main content

Module transform

Module transform 

Source
Expand description

The static transform / transform3d wire types mirroring the animated transform channels.

Structs§

Transform
A static 2D transform mirroring the animated transform channels. Every field is optional; unset channels stay at identity (no translation, unit scale, no rotation). scale is uniform; scaleX/scaleY override a single axis.
Transform3d
The transform3d style: a 3D perspective transform composited onto a promoted layer’s quad (see super::style::Style::transform3d). Every field is optional; unset channels stay at identity. Canonical application order around origin: scale → rotateX → rotateY → rotateZ → translate, then the self-perspective projection.
Transform3dOrigin
The transform3d pivot: a per-axis Length resolved against the node’s border box ("50%" = center, a number = logical pixels from the top-left).