/* SPDX-FileCopyrightText: 2011 Sebastian Kügler SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick import org.kde.kirigami as Kirigami SequentialAnimation { id: activateAnimation objectName: "activateAnimation" property Item targetItem property int duration: Kirigami.Units.shortDuration // Fast scaling while we're animation == more FPS ScriptAction { script: targetItem.smooth = false } PressedAnimation { targetItem: activateAnimation.targetItem } ReleasedAnimation { targetItem: activateAnimation.targetItem } ScriptAction { script: targetItem.smooth = true } }