From d349e0a57247d3ecf3a254ebd22214f3231d3c78 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 7 Mar 2023 12:23:08 -0600 Subject: [PATCH] better adding animations --- src/qml/presenter/ServiceList.qml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/qml/presenter/ServiceList.qml b/src/qml/presenter/ServiceList.qml index d7034a9..78f1df3 100644 --- a/src/qml/presenter/ServiceList.qml +++ b/src/qml/presenter/ServiceList.qml @@ -307,19 +307,14 @@ Item { property int moveToIndex property int draggedY - addDisplaced: Transition { - NumberAnimation {properties: "x, y"; duration: 100} - } - moveDisplaced: Transition { - NumberAnimation { properties: "x, y"; duration: 100 } - } - remove: Transition { - NumberAnimation { properties: "x, y"; duration: 100 } - NumberAnimation { properties: "opacity"; duration: 100 } + add: Transition { + NumberAnimation {properties: "width, height"; duration: 3000} + NumberAnimation { properties: "opacity"; duration: 3000 } } - removeDisplaced: Transition { - NumberAnimation { properties: "x, y"; duration: 100 } + remove: Transition { + NumberAnimation { properties: "width, height"; duration: 3000 } + NumberAnimation { properties: "opacity"; duration: 3000 } } displaced: Transition {