NoRedInk/noredink-ui/9.6.0

NOTE: the latest version is 35.9.3

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 9.6.0 found (15 same-name repos checked); no cached copy. Use another version.

Details

Nri.Ui.Confetti.V2

type Model
init : Float -> Model
view : Model -> Html msg
type alias Msg =
Msg Confetti

burst BURSTS CONFETTI!!!

update : Msg Confetti -> Model -> Model

You will need to watch for page resize events and update the confetti model with the new width. If you don't, your confetti will be off-center.

Why is this not part of subscriptions? Your application may already be listening for browser resize events -- we don't want to double-up listeners unnecessarily.

subscriptions : (Msg -> msg) -> Model -> Sub msg

Changes from V1:

  • removes custom words from confetti