reanimate-1.1.1.0: Animation library based on SVGs.

CopyrightWritten by David Himmelstrup
LicenseUnlicense
Maintainerlemmih@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Reanimate.Transition

Description

 
Synopsis

Documentation

type Transition = Animation -> Animation -> Animation Source #

A transition transforms one animation into another.

signalT :: Signal -> Transition -> Transition Source #

Apply a signal to the timing of a transition.

mapT :: (Animation -> Animation) -> Transition -> Transition Source #

Map the result of a transition.

overlapT :: Double -> Transition -> Transition Source #

Apply transition only to N seconds of the first animation and to the last N seconds of the second animation.

Example:

overlapT 0.5 fadeT drawBox drawCircle

chainT :: Transition -> [Animation] -> Animation Source #

Combine a list of animations using a given transition.

Example:

chainT (overlapT 0.5 fadeT) [drawBox, drawCircle, drawProgress]

effectT Source #

Arguments

:: Effect

Effect to be applied to the first animation.

-> Effect

Effect to be applied to the second animation.

-> Transition 

Create a transition between two animations by applying an effect to each respective animation.

fadeT :: Transition Source #

Fade out left-hand-side animation while fading in right-hand-side animation.

Example:

drawBox `fadeT' drawCircle