moment/src/qml/Base/HFlow.qml

37 lines
964 B
QML
Raw Normal View History

2019-12-09 20:25:31 +11:00
import QtQuick 2.12
Flow {
populate: Transition {
id: addTrans
SequentialAnimation {
PropertyAction { property: "opacity"; value: 0 }
PauseAnimation {
duration:
addTrans.ViewTransition.index * theme.animationDuration / 2
}
ParallelAnimation {
HNumberAnimation { property: "opacity"; to: 1 }
HNumberAnimation { properties: "x,y"; from: 0 }
}
}
}
add: Transition {
ParallelAnimation {
HNumberAnimation { property: "opacity"; to: 1 }
HNumberAnimation { properties: "x,y"; from: 0 }
}
}
move: Transition {
ParallelAnimation {
// Ensure opacity goes to 1 if add transition is interrupted
HNumberAnimation { property: "opacity"; to: 1 }
HNumberAnimation { properties: "x,y" }
}
}
}