← all modules

Std.Ui.Transform

Std.Ui.Transform
  Std.Ui.Transform — typed `transform:` property helpers (v0.15.57+).

Types
  type Prop

Values
  opacity : Float -> Prop
      Opacity in [0, 1]. Emits as a standalone `opacity: <n>` rule;
  propToCssPair : Prop -> ( String, String )
      Map one Prop to a (cssKey, cssValue) pair. `TransformPart` is
  propsToCss : List Prop -> String
      Lower a list of Props to a CSS property block string
  rotate : Float -> Prop
      Rotate by degrees. Positive = clockwise.
  scale : Float -> Prop
      Uniform scale. `1.0` = no change; `0.9` = 90 %.
  scaleXY : Float -> Float -> Prop
      Per-axis scale.
  skewX : Float -> Prop
      Skew horizontally by degrees.
  skewY : Float -> Prop
      Skew vertically by degrees.
  translate : Int -> Int -> Prop
      Translate both axes.
  translateX : Int -> Prop
      Translate horizontally by `n` pixels.
  translateY : Int -> Prop
      Translate vertically by `n` pixels. Positive = down.