Plasma-framework

ReleasedAnimation.qml
1/*
2 SPDX-FileCopyrightText: 2011 Sebastian Kügler <sebas@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7import QtQuick
8import org.kde.kirigami as Kirigami
9
10SequentialAnimation {
11 id: releasedAnimation
12 objectName: "releasedAnimation"
13
14 property Item targetItem
15 property int duration: Kirigami.Units.shortDuration
16
17 // Fast scaling while we're animation == more FPS
18 ScriptAction { script: targetItem.smooth = false }
19
20 ParallelAnimation {
21 PropertyAnimation {
22 target: targetItem
23 properties: "opacity"
24 from: 0.8; to: 1.0
25 duration: releasedAnimation.duration;
26 easing.type: Easing.InExpo;
27 }
28 PropertyAnimation {
29 target: targetItem
30 properties: "scale"
31 from: 0.95; to: 1.0
32 duration: releasedAnimation.duration;
33 easing.type: Easing.InExpo;
34 }
35 }
36
37 ScriptAction { script: targetItem.smooth = true }
38}
KGuiItem properties()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:54:11 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.