xarvh / elm-slides / Slides.FragmentAnimation

This module contains the functions used to animate the appearance of a new slide fragment (or the hiding of an old one, if going backwards).

Fragment animators

fade : Basics.Float -> Css.Style

Fade in

Shorthand type


type alias Animator =
Basics.Float -> Css.Style

Shorthand for the function type used to animate the fragments.

fade : Animator
fade completion =
    Css.batch
        [ Css.opacity (Css.num completion)
        , Css.property "filter" (Slides.Blur.blur completion)
        , Css.property "-webkit-filter" (Slides.Blur.blur completion)
        ]