Transition
How a view enters and exits
Only fires on a node that also carries a stable id. Without one the system treats the view as new and crossfades it.
Methods
Transition.opacity()AnyFades in and out.
Transition.slide()AnySlides in from the leading edge and out to the trailing one.
Transition.scale()AnyGrows in and shrinks out.
Transition.blurReplace()AnyBlurs one out while the other sharpens in.
Transition.identity()AnyNo transition: the view is simply there or not.
Transition.move(edge?)AnyMoves in and out through the given edge.
- edge Edge
Which side. Default bottom.
Transition.push(edge?)AnyPushes in from the given edge while the old view leaves through the opposite one.
- edge Edge
Which side. Default bottom.
Transition.asymmetric(insertion, removal)AnyDifferent transitions for arriving and leaving.
- insertion Any required
Used when the view appears.
- removal Any required
Used when it goes away.
Transition.combined(first, second)AnyRuns two transitions together.
- first Any required
One transition.
- second Any required
The other.
Examples
Transitions
Transition.push(Edge.bottom)
Transition.move(Edge.leading)
Transition.asymmetric(Transition.push(Edge.bottom), Transition.opacity())