etaque/elm-transit/4.0.1

NOTE: this package is not compatible with Elm 0.19.1

Transit.Style

Default animations for transitions, to be used on elm-html style attribute.

div
  [ style (fadeSlideLeft 100 model) ]
  [ text "content" ]

Compositions

fadeSlideLeft : Float -> WithTransition m -> Style

Combine fade and slideLeft with the specified offset

Slide left

slideLeft : Float -> WithTransition m -> Style

Slide left transition, with the specified offset

slideOutLeft : Float -> Float -> Style

Slide out to left (exit)

slideInLeft : Float -> Float -> Style

Slide in to left (enter)

Fade

fade : WithTransition m -> Style

Fade transition (out -> in)

fadeOut : Float -> Style

Fade out (exit)

fadeIn : Float -> Style

Fade in (enter)

Tooling to create animations

transition : (Float -> Style) -> (Float -> Style) -> WithTransition m -> Style

Create an exit -> enter transition

type alias Style =
List ( String, String )

Alias for elm-html style value