andrewMacmurray/elm-simple-animation/2.0.2

NOTE: the latest version is 2.3.2

Simple.Animation.Property

Animatable properties

Property

type alias Property =
Property

Common Properties

These properties will give you smooth and performant animations

Opacity

Animate the opacity of an element (a value between 0 and 1)

opacity : Float -> Property

Transforms

Move, Rotate and resize elements

rotate : Float -> Property
scale : Float -> Property
scaleXY : Float -> Float -> Property
y : Float -> Property
x : Float -> Property
xy : Float -> Float -> Property

Colors

color : String -> Property
backgroundColor : String -> Property
borderColor : String -> Property

Custom Property

Animate any CSS property:

P.property "stroke-dasharray" "10"

Take care with properties that are not hardware accelerated as they may result in janky animations

property : String -> String -> Property