Inherits Item.
An element that implements a shared element transition, otherwise known as a "hero animation".
Definition at line 14 of file Hero.qml.
QtObject org::kde::kirigami::Hero::mask |
|
read |
Group of properties related to the mask of the object when performing a hero animation.
This contains the default mask as well as the properties required to create a custom mask.
The default mask of the Hero will transition from a circle to a rectangle on open(), and from a rectangle to a circle on close().
sourceProgress: real
the progress of the animation, where 0 is the start and 1 is the end.
destinationProgress: real
the progress of the animation, where 1 is the start and 0 is the end.
mask.sourceHeight: real
the height of the source item.
mask.sourceWidth: real
the width of the source item.
mask.destinationWidth: real
the width of the destination item.
mask.destinationHeight: real
the height of the destination item.
item: Rectangle
the item used to mask the Hero during animation. This should bind to the sourceProgress and destinationProgress to change as the animation progresses.
Definition at line 49 of file Hero.qml.