← all modules

Std.Ui.Animation

Std.Ui.Animation
  Std.Ui.Animation — typed CSS keyframe animations for `Std.Ui` (v0.15.57+).

Types
  type Iterations = Once | Infinite | Times Int
  type FillMode = NoneMode | Forwards | Backwards | BothMode
  type alias Spec

Values
  attribute : Spec -> Attribute msg
  backwards : FillMode
  both : FillMode
  buildKeyframesBody : List ( Int, List Prop ) -> String
  buildShorthandTail : Spec -> String
  cubicBezier : Float -> Float -> Float -> Float -> Easing
  defaultSpec : String -> Spec
      `defaultSpec "fadeIn"` — Spec with sensible defaults: 300ms
  easeIn : Easing
  easeInOut : Easing
  easeOut : Easing
  easingToCss : Easing -> String
  fillModeToCss : FillMode -> String
  forwards : FillMode
  infinite : Iterations
  iterationsToCss : Iterations -> String
  linear : Easing
  none : FillMode
  once : Iterations
  times : Int -> Iterations
  withDelay : Int -> Spec -> Spec
      `withDelay 100 spec` — replace the delay before animation starts.
  withDuration : Int -> Spec -> Spec
      `withDuration 500 spec` — replace the duration in milliseconds.
  withEasing : Easing -> Spec -> Spec
      `withEasing easeOut spec` — replace the easing curve.
  withFillMode : FillMode -> Spec -> Spec
      `withFillMode forwards spec` — replace the post-animation state.
  withIterations : Iterations -> Spec -> Spec
      `withIterations infinite spec` — replace the iteration count.
  withKeyframes : List ( Int, List Prop ) -> Spec -> Spec
      `withKeyframes [(0, [Transform.opacity 0.0]), (100, [Transform.opacity 1.0])] spec`
  withRespectReducedMotion : Bool -> Spec -> Spec
      `withRespectReducedMotion False spec` — opt out of the prefers-