lattyware/elm-fontawesome/2.3.0

NOTE: the latest version is 7.2.0

FontAwesome.Transforms

Provides tools for transforming icons.

See the FontAwesome docs for details.

Scaling

grow : Float -> Transform

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

shrink : Float -> Transform

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

Positioning

up : Float -> Transform

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

down : Float -> Transform

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

left : Float -> Transform

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

Rotating & Flipping

rotate : Float -> Transform

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

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

Note that multiple flips do not cancel each other out. Any number of flips on the same axis will just result in one flip.

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

Note that multiple flips do not cancel each other out. Any number of flips on the same axis will just result in one flip.

Manual

| Reposition RepositionTransform
| Rotate Float
| Flip Axis

Transforms that modify an icon.

= Grow Float
| Shrink Float

Transforms that adjust the scale of an icon.

= Up Float
| Down Float
| Left Float
| Right Float

Transforms that adjust the position of an icon.

type Axis
= Vertical
| Horizontal

An axis for flipping an icon.