Skip to content

module

transform

GSAP-style transform properties (x, y, rotation, scale, …) composed into one CSS transform, plus property-name helpers.

Structs

Functions

canonical

pub fn canonical(prop: &str) -> &str

The canonical transform name for an alias (rotate → rotation).

is_transform

pub fn is_transform(prop: &str) -> bool

Whether prop is part of transform (x, rotate, scale…), in any of its spellings.

kebab

pub fn kebab(prop: &str) -> String

backgroundColor → background-color (custom properties untouched).

Constants

TRANSFORM_PROPS

pub const TRANSFORM_PROPS: &[(&str, f64, &str)] = _;

Transform components and their defaults and units.