AnimationContainer.qml Example File
callapizza/assets/720x720/AnimationContainer.qml
import bb.cascades 1.0
Container {
property variant target1
property variant target2
property variant target3
property variant target4
property variant target5
property int hideTouchArea: 100
function playShowListViewAnimation() {
showListViewAnimation.play()
}
function playHideListViewAnimation() {
hideListViewAnimation.play()
}
animations: [
ParallelAnimation {
id: showListViewAnimation
SequentialAnimation {
target: target1
FadeTransition {
duration: 500
fromOpacity: 1.0
toOpacity: 0
easingCurve: StockCurve.Linear
}
}
SequentialAnimation {
target: target2
FadeTransition {
duration: 500
fromOpacity: 1.0
toOpacity: 0
easingCurve: StockCurve.Linear
}
}
SequentialAnimation {
target: target3
FadeTransition {
duration: 500
fromOpacity: 1.0
toOpacity: 0
easingCurve: StockCurve.Linear
}
}
SequentialAnimation {
target: target4
TranslateTransition {
duration: 500
fromY: 0
toY: -500
easingCurve: StockCurve.Linear
}
}
SequentialAnimation {
target: target5
TranslateTransition {
duration: 500
fromY: 1280
toY: 25
easingCurve: StockCurve.Linear
}
}
},
ParallelAnimation {
id: hideListViewAnimation
SequentialAnimation {
target: target1
FadeTransition {
duration: 500
fromOpacity: 0
toOpacity: 1.0
easingCurve: StockCurve.Linear
}
}
SequentialAnimation {
target: target2
FadeTransition {
duration: 500
fromOpacity: 0
toOpacity: 1.0
easingCurve: StockCurve.Linear
}
}
SequentialAnimation {
target: target3
FadeTransition {
duration: 500
fromOpacity: 0
toOpacity: 1.0
easingCurve: StockCurve.Linear
}
}
SequentialAnimation {
target: target4
TranslateTransition {
duration: 500
fromY: -1000
toY: 0
easingCurve: StockCurve.Linear
}
}
SequentialAnimation {
target: target5
TranslateTransition {
duration: 500
fromY: 0
toY: 1280
easingCurve: StockCurve.Linear
}
}
}
]
}