Skip to main content

minify_transform_functions

Function minify_transform_functions 

Source
pub fn minify_transform_functions(arena: &AstArena, transform: u32) -> u32
Expand description

shorter form of a transform function: translate3d(0, 10px, 0) → translateY(10px), scale3d(2, 1, 1) → scaleX(2), skewX() → skew(). the percentages of the scale functions are converted to numbers