summaryrefslogtreecommitdiffstats
path: root/demos/declarative/snake/content/Link.qml
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/snake/content/Link.qml')
-rw-r--r--demos/declarative/snake/content/Link.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/demos/declarative/snake/content/Link.qml b/demos/declarative/snake/content/Link.qml
index 9aa6006..942008d 100644
--- a/demos/declarative/snake/content/Link.qml
+++ b/demos/declarative/snake/content/Link.qml
@@ -86,7 +86,6 @@ Item { id:link
}
opacity: 0
- Behavior on opacity { NumberAnimation { duration: 200 } }
}
@@ -114,4 +113,11 @@ Item { id:link
PropertyChanges { target: img; opacity: 0 }
}
]
+
+ transitions: [
+ Transition {
+ NumberAnimation { target: img; property: "opacity"; duration: 200 }
+ }
+ ]
+
}