mdgriffith/stylish-elephants/3.0.0

NOTE: this package is not compatible with Elm 0.19.1

Element.Background

color : Color -> Attribute msg
mouseOverColor : Color -> Attribute msg

The background will change to this color when the mouse is over it.

gradient : Float -> List Color -> Attribute msg

A linear gradient.

First you need to specify what direction the gradient is going by providing an angle in radians. 0 is up and pi is down.

The colors will be evenly spaced.

image : String -> Attribute msg

A background image that keeps it's natural width and height.

fittedImage : String -> Attribute msg

Scale the image to fit the size of the element while maintaining proportions and cropping the overflow.

tiled : String -> Attribute msg

Tile an image in the x and y axes.

tiledX : String -> Attribute msg

Tile an image in the x axis.

tiledY : String -> Attribute msg

Tile an image in the y axis.