Files
illogical-impulse/dots/.config/quickshell/ii/modules/common/widgets/ErrorShakeAnimation.qml
T
2026-04-03 18:51:24 +02:00

17 lines
713 B
QML

pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
SequentialAnimation {
id: root
required property Item target
property real distance: 30
NumberAnimation { target: root.target; property: "Layout.leftMargin"; to: -root.distance; duration: 50 }
NumberAnimation { target: root.target; property: "Layout.leftMargin"; to: root.distance; duration: 50 }
NumberAnimation { target: root.target; property: "Layout.leftMargin"; to: -root.distance / 2; duration: 40 }
NumberAnimation { target: root.target; property: "Layout.leftMargin"; to: root.distance / 2; duration: 40 }
NumberAnimation { target: root.target; property: "Layout.leftMargin"; to: 0; duration: 30 }
}