FadeAnimator QML Type
A Sailfish-style fade animation that runs outside of the main application UI thread More...
Import Statement: | import Sailfish.Silica 1.0 |
Detailed Description
The FadeAnimator type provides a common animation for applying fade-in and fade-out animations to items. It is commonly used within a Behavior
applied to an item's opacity
to automatically animate opacity changes to the item in a Sailfish-styled manner.
Here is a simple example:
import QtQuick 2.2
import Sailfish.Silica 1.0
Page {
Button {
enabled: canSend
text: "Send message"
opacity: enabled ? 1.0 : 0.0
Behavior on opacity { FadeAnimator {} }
anchors.centerIn: parent
}
}
FadeAnimator inherits the QtQuick OpacityAnimator type, so any properties, signals and methods of OpacityAnimator are also available to FadeAnimator objects. See the OpacityAnimator documentation for its full list of available properties, signals and methods.