Classes
SharedTransition
SharedTransition
Shared Element Transitions (preview)
Allows you to auto animate between shared elements on two different screesn to create smooth navigational experiences.
View components can define sharedTransitionTag="name" alone with a transition through this API.
Summary
Constructors
Constructors
constructor
new SharedTransition(): SharedTransition
Returns SharedTransition
Properties
DEBUG
Static
Enable to see various console logging output of Shared Element Transition behavior.
finishedEvent
Static
When the transition finishes.
inProgress
Static
Whether a transition is in progress or not.
Note: used internally however exposed in case custom state ordering is needed.
Updated when transitions start/end/cancel.
interactiveCancelledEvent
Static
When the interactive transition cancels.
interactiveUpdateEvent
Static
When the interactive transition updates with the percent value.
startedEvent
Static
When the transition starts.
Methods
custom
Static
custom(transition: Transition, options?: SharedTransitionConfig): {}
Configure a custom transition with presentation/dismissal options.
Parameter | Default | Description |
transition |
| The custom Transition instance. |
options |
|
Returns {}
events
Static
Listen to various shared element transition events.
Returns SharedTransitionObservable
finishState
Static
Finish transition state.
Parameter | Default | Description |
id |
| number Transition instance id |
Returns void
getSharedElements
Static
Gather view collections based on sharedTransitionTag details.
getState
Static
Get current state for any transition.
Parameter | Default | Description |
id |
| number Transition instance id |
Returns SharedTransitionState
notifyEvent
Static
Notify a Shared Transition event.
Parameter | Default | Description |
eventName |
| string Shared Transition event name |
data |
| SharedTransitionEventDataPayload |
Returns void
updateState
Static
Update transition state.
Parameter | Default | Description |
id |
| number Transition instance id |
state |
| SharedTransitionState SharedTransitionState |
Returns void
- Previous
- SegmentedBarItem