summaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/StyledText.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/StyledText.qml b/widgets/StyledText.qml
index 9e4be48..c39269b 100644
--- a/widgets/StyledText.qml
+++ b/widgets/StyledText.qml
@@ -9,6 +9,8 @@ Text {
property bool animate: false
property string animateProp: "scale"
+ property real animateFrom: 0
+ property real animateTo: 1
property int animateDuration: Appearance.anim.durations.normal
renderType: Text.NativeRendering
@@ -29,12 +31,12 @@ Text {
SequentialAnimation {
Anim {
- to: 0
+ to: root.animateFrom
easing.bezierCurve: Appearance.anim.curves.standardAccel
}
PropertyAction {}
Anim {
- to: 1
+ to: root.animateTo
easing.bezierCurve: Appearance.anim.curves.standardDecel
}
}