lattyware / elm-fontawesome / FontAwesome.Transforms

Provides tools for transforming icons.

See the FontAwesome docs for details.

Scaling

grow : Basics.Float -> Transform

Transform the icon by growing it by the given amount. Units are 1/16em.

shrink : Basics.Float -> Transform

Transform the icon by shrinking it by the given amount. Units are 1/16em.

Positioning

up : Basics.Float -> Transform

Transform the icon by repositioning it upwards by the given amount. Units are 1/16em.

down : Basics.Float -> Transform

Transform the icon by repositioning it downwards by the given amount. Units are 1/16em.

left : Basics.Float -> Transform

Transform the icon by repositioning it leftwards by the given amount. Units are 1/16em.

right : Basics.Float -> Transform

Transform the icon by repositioning it rightwards by the given amount. Units are 1/16em.

Rotating & Flipping

rotate : Basics.Float -> Transform

Transform the icon by rotating it by the given number of degrees clockwise (negateative numbers will produce an anticlockwise rotation.

flipV : Transform

Transform the icon by flipping it on it's vertical axis.

flipH : Transform

Transform the icon by flipping it on it's horizontal axis.

Manual


type Transform
    = Scale Basics.Float
    | Reposition Axis Basics.Float
    | Rotate Basics.Float
    | Flip Axis

Transforms that modify an icon.


type Axis
    = Vertical
    | Horizontal

An axis.