This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
We were not able to find the expected elm-package.json file at this tag.
Tag 2.0.0
Committed At 2018-10-15 08:57:38 UTC

Modules

    README

    Elm-gallery

    A simple content and/or image gallery with touch and keyboard navigation.

    example live | example code

    Example code

    type alias Model =
        { gallery : Gallery.State }
    
    
    init : Model
    init =
        { gallery = Gallery.init (List.length someSlides) }
    
    
    type Msg
        = GalleryMsg Gallery.Msg
    
    
    update : Msg -> Model -> Model
    update msg model =
        case msg of
            GalleryMsg msg ->
                { model | gallery = Gallery.update msg model.gallery }
    
    
    view : Model -> Html Msg
    view model =
        Html.map GalleryMsg <|
            Gallery.view config model.gallery [ Gallery.Arrows ] someSlides
    
    
    config : Gallery.Config
    config =
        Gallery.config
            { id = "image-gallery"
            , transition = 500
            , width = Gallery.vw 60
            , height = Gallery.px 400
            }
    

    Images by

    esa