Expand description
CSS transform builder — Remotion makeTransform / @remotion/animation-utils.
§Example
use rust_motion_animation::transform::{make_transform, rotate, scale, translate_x};
let css = make_transform(&[rotate(45.0), scale(1.5), translate_x(100.0)]);
assert_eq!(css, "rotate(45deg) scale(1.5) translateX(100px)");Enums§
- Style
Value - A CSS style value — string, pixel, percent, or unitless number.
- Transform
Op - A single CSS transform function token.
Functions§
- interpolate_
styles - Interpolates CSS style properties across keyframes.
Equivalent to Remotion’s
interpolateStyles(input, inputRange, outputStylesRange). - make_
transform - Combines CSS transform operations into a single
transformproperty string. Equivalent to Remotion’smakeTransform(transforms). - matrix
- matrix3d
- perspective
- rotate
- rotate3d
- rotate_
x - rotate_
y - rotate_
z - scale
- scale3d
- scale_x
- scale_y
- scale_z
- skew
- skew_x
- skew_y
- translate
- translate3d
- translate_
x - translate_
y - translate_
z
Type Aliases§
- Style
Map - A keyframe style map: property name →
StyleValue.