Libplasma

DisappearAnimation.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: disappearAnimation
12 objectName: "disappearAnimation"
13
14 property Item targetItem
15 property int duration: Kirigami.Units.longDuration
16
17 ParallelAnimation {
18 OpacityAnimator {
19 duration: disappearAnimation.duration
20 from: 1.0
21 to: 0
22 target: disappearAnimation.targetItem
23 easing.type: Easing.OutExpo
24 }
25 ScaleAnimator {
26 target: disappearAnimation.targetItem
27 from: 1.0
28 to: 0.8
29 duration: disappearAnimation.duration * 0.6
30 easing.type: Easing.OutExpo
31 }
32 }
33
34 ScriptAction {
35 script: {
36 targetItem.visible = false;
37 }
38 }
39}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:34:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.