ghter animation effect
This commit is contained in:
parent
7331d06c7b
commit
74c4c37d24
@ -66,20 +66,20 @@ Item{
|
|||||||
switch (transition) {
|
switch (transition) {
|
||||||
case "push":
|
case "push":
|
||||||
containerA.animationsEnabled = true
|
containerA.animationsEnabled = true
|
||||||
oldContainer.x = -oldContainer.width
|
oldContainer.x = -oldContainer.width/2
|
||||||
|
|
||||||
containerA.animationsEnabled = false
|
containerA.animationsEnabled = false
|
||||||
newContainer.x = newContainer.width
|
newContainer.x = newContainer.width/2
|
||||||
newContainer.y = 0
|
newContainer.y = 0
|
||||||
containerA.animationsEnabled = true
|
containerA.animationsEnabled = true
|
||||||
newContainer.x = 0
|
newContainer.x = 0
|
||||||
break
|
break
|
||||||
case "pop":
|
case "pop":
|
||||||
containerA.animationsEnabled = true
|
containerA.animationsEnabled = true
|
||||||
oldContainer.x = oldContainer.width
|
oldContainer.x = oldContainer.width/2
|
||||||
|
|
||||||
containerA.animationsEnabled = false
|
containerA.animationsEnabled = false
|
||||||
newContainer.x = -newContainer.width
|
newContainer.x = -newContainer.width/2
|
||||||
newContainer.y = 0
|
newContainer.y = 0
|
||||||
containerA.animationsEnabled = true
|
containerA.animationsEnabled = true
|
||||||
newContainer.x = 0
|
newContainer.x = 0
|
||||||
@ -98,7 +98,7 @@ Item{
|
|||||||
default:
|
default:
|
||||||
containerA.animationsEnabled = false
|
containerA.animationsEnabled = false
|
||||||
containerA.animationsEnabled = false
|
containerA.animationsEnabled = false
|
||||||
oldContainer.x = -oldContainer.width
|
oldContainer.x = -oldContainer.width/2
|
||||||
newContainer.x = 0
|
newContainer.x = 0
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user