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()Transition ›Fades in and out.
Transition.slide()Transition ›Slides in from the leading edge and out to the trailing one.
Transition.scale()Transition ›Grows in and shrinks out.
Transition.blurReplace()Transition ›Blurs one out while the other sharpens in.
Transition.identity()Transition ›No transition: the view is simply there or not.
Transition.move(edge?)Transition ›Moves in and out through the given edge.
- edge Edge
Which side. Default bottom.
Transition.push(edge?)Transition ›Pushes in from the given edge while the old view leaves through the opposite one.
- edge Edge
Which side. Default bottom.
Transition.asymmetric(insertion, removal)Transition ›Different transitions for arriving and leaving.
- insertion Transition required
Used when the view appears.
- removal Transition required
Used when it goes away.
Transition.combined(first, second)Transition ›Runs two transitions together.
- first Transition required
One transition.
- second Transition required
The other.
Examples
Transitions
Transition.push(Edge.bottom)
Transition.move(Edge.leading)
Transition.asymmetric(Transition.push(Edge.bottom), Transition.opacity())