From 2a81ffd252097dc4c3a2caf46411f8c8ecea3ea9 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 24 Feb 2023 16:48:15 -0600 Subject: [PATCH] animations for adding slides --- src/qml/presenter/Presentation.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/qml/presenter/Presentation.qml b/src/qml/presenter/Presentation.qml index 2b13f14..2197cb2 100644 --- a/src/qml/presenter/Presentation.qml +++ b/src/qml/presenter/Presentation.qml @@ -207,6 +207,20 @@ FocusScope { active: hovered || pressed } + add: Transition { + NumberAnimation {properties: "width, height"; duration: 3000} + NumberAnimation { properties: "opacity"; duration: 3000 } + } + + remove: Transition { + NumberAnimation { properties: "width, height"; duration: 3000 } + NumberAnimation { properties: "opacity"; duration: 3000 } + } + + displaced: Transition { + NumberAnimation {properties: "x, y"; duration: 100} + } + } Rectangle {