Skip to content

jouderianjr/elm-loaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elm Loaders

This Package is the Sam Herbert svg loaders implementation for elm

The Loaders can be previewed at:

http:https://elm-loaders.surge.sh/

I've implemented all the loaders available:

  • Audio
  • Ball Triangle
  • Bars
  • Circles
  • Grid
  • Hearts
  • Oval
  • Puff
  • Rings
  • SpinningCircles
  • TailSpin
  • ThreeDots

Installation

elm install jouderianjr/elm-loaders

Examples

import Loaders

view : Html msg
view =
    div [] [ Loaders.tailSpin 40 "#ff0000" ]

PS. The number that is passed as parameter is always the width, then the height adjusts in the correct ratio.