etaque/elm-transit-style/3.0.1

NOTE: this package is not compatible with Elm 0.19.1

TransitStyle

Animations for elm-transit, to be used on elm-html style attribute.

div
  [ style (fadeSlide 100 model.transition) ]
  [ text "Some content" ]

Combinations

fadeSlide : Float -> Transition -> Style

Combine fade and slideLeft with the specified offset

Slide left

slide : Float -> Transition -> Style

Slide animation, with the specified offset. Greater than 0 to right, lesser to left.

slideOut : Float -> Float -> Style

Slide out (exit) by translating on X for desired offset

slideIn : Float -> Float -> Style

Slide in (enter) by translating on X for desired offset

Fade

fade : Transition -> Style

Fade animation

fadeOut : Float -> Style

Fade out (exit).

fadeIn : Float -> Style

Fade in (enter).

Tooling to create animations

compose : (Float -> Style) -> (Float -> Style) -> Transition -> Style

Compose an animation with exit and enter phases.

type alias Style =
List ( String, String )

Just an alias for elm-html style value