georgesboris/elm-widgets-alpha/3.1.0

NOTE: the latest version is 4.18.3

W.Skeleton

view : List Attribute -> Html msg
-- skeleton with default size
W.Skeleton.view [] []


-- skeleton with custom size
W.Skeleton.view [ W.Skeleton.width 100, W.Skeleton.height 100 ] []


-- skeleton with custom size and no animation
W.Skeleton.view [ W.Skeleton.width 100, W.Skeleton.height 100, W.Skeleton.noAnimation ] []

Sizing

width : Float -> Attribute

Sets the width of the skeleton element in "rem".

height : Float -> Attribute

Sets the height of the skeleton element in "rem".

relativeWidth : Float -> Attribute

Sets the width of the skeleton element as a percentage of its parent element.

relativeHeight : Float -> Attribute

Sets the height of the skeleton element as a percentage of its parent element.

Styles

radius : Float -> Attribute

Sets the border radius of the skeleton element in "rem".

circle : Float -> Attribute

Makes the skeleton element a circle with the specified size in "rem".

noAnimation : Attribute

Disables the animation of the skeleton element.

type alias Attribute =
Attr Attributes