mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-05 18:20:33 -08:00
30 lines
449 B
QML
30 lines
449 B
QML
import QtQuick
|
|
import "../" as Ext
|
|
|
|
Image {
|
|
id: player
|
|
|
|
Behavior on x {
|
|
Ext.NumberAnimation {
|
|
duration: 120
|
|
easing.type: Easing.InOutSine
|
|
}
|
|
}
|
|
|
|
Behavior on y {
|
|
Ext.NumberAnimation {
|
|
duration: 120
|
|
easing.type: Easing.InOutSine
|
|
}
|
|
}
|
|
|
|
// final animation
|
|
|
|
Ext.RotationAnimation {
|
|
objectName: "rotate_player"
|
|
target: player
|
|
property: "rotation"
|
|
from: 0; to: 360
|
|
duration: 600
|
|
}
|
|
}
|