mdgriffith/elm-style-animation/3.5.1

NOTE: this package is not compatible with Elm 0.19.1

Animation.Messenger

Import this module if you want the ability to send a Msg at any point during your animation.

type alias State msg =
Animation msg

An Animation State that also tracks your Msg type.

update : Tick -> Animation msg -> ( Animation msg, Cmd msg )

An update that returns the updated animation as well as any messages sent in Cmd form.

send : msg -> Step msg

An animation Step which will send a message. For example

Animation.interrupt
    [ Animation.to [Animation.opacity 0]
    , Animation.send OpacityIsNotZero
    ]
type alias Step msg =
Step msg