createSimpleClassTransition(
config
):TransitionFn
Create a transition based on css classes to attach.
The config includes the classes that will be attached / removed depending on the transition state.
animationPendingClasses
are the classes attached when the transition is in a pending state
animationPendingShowClasses
and animationPendingHideClasses
are attached when transitioning towards one direction
showClasses
and hideClasses
are attached when the transition has reached the show or hide state respectively
the transition config
the simple class transition
Configuration interface for simple class-based transitions.
optional
animationPendingClasses:string
[]
a list of classes to add to the collapsable element while transitioning
optional
animationPendingHideClasses:string
[]
a list of classes to add to the collapsable element while transitioning towards the hide state
optional
animationPendingShowClasses:string
[]
a list of classes to add to the collapsable element while transitioning towards the show state
optional
hideClasses:string
[]
the list of classes to add to the element when hidden
optional
showClasses:string
[]
the list of classes to add to the element when shown
Represents the context for a simple class transition.
optional
started:boolean
true
is the transition has started