mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-11 09:49:30 -05:00
lock: refactor error shake
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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 }
|
||||
}
|
||||
Reference in New Issue
Block a user