Warning, /plasma/libplasma/src/declarativeimports/plasmaextracomponents/qml/animations/DisappearAnimation.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2011 Sebastian Kügler <sebas@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 import QtQuick
0008 import org.kde.kirigami as Kirigami
0009 
0010 SequentialAnimation {
0011     id: disappearAnimation
0012     objectName: "disappearAnimation"
0013 
0014     property Item targetItem
0015     property int duration: Kirigami.Units.longDuration
0016 
0017     ParallelAnimation {
0018         OpacityAnimator {
0019             duration: disappearAnimation.duration
0020             from: 1.0
0021             to: 0
0022             target: disappearAnimation.targetItem
0023             easing.type: Easing.OutExpo
0024         }
0025         ScaleAnimator {
0026             target: disappearAnimation.targetItem
0027             from: 1.0
0028             to: 0.8
0029             duration: disappearAnimation.duration * 0.6
0030             easing.type: Easing.OutExpo
0031         }
0032     }
0033 
0034     ScriptAction {
0035         script: {
0036             targetItem.visible = false;
0037         }
0038     }
0039 }