Type Aliases
SharedTransitionTagProperties
Properties which can be set on individual Shared Elements
type SharedTransitionTagProperties = SharedProperties & {
callback?: (view: View, action: SharedTransitionEventAction) => Promise<void>;
propertiesToMatch?: SharedTransitionTagPropertiesToMatch;
zIndex?: number;
};Defined in: ui/transition/shared-transition.ts
Properties which can be set on individual Shared Elements
Type Declaration
callback?
optional callback?: (view: View, action: SharedTransitionEventAction) => Promise<void>;Parameters
| Parameter | Type |
|---|---|
view | View |
action | SharedTransitionEventAction |
Returns
Promise<void>
propertiesToMatch?
optional propertiesToMatch?: SharedTransitionTagPropertiesToMatch;Collection of properties to match and animate on each shared element.
Defaults to: 'backgroundColor', 'cornerRadius', 'borderWidth', 'borderColor'
Tip: Using an empty array, [], for view or layer will avoid copying any properties if desired.
zIndex?
optional zIndex?: number;The visual stacking order where 0 is at the bottom. Shared elements are stacked one on top of the other during each transition. By default they are not ordered in any particular fashion.
- Previous
- SceneEventName
- Next
- SplitBehavior