Commit 4a033737 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(Popup): better transitions

parent 9976c543
......@@ -126,7 +126,10 @@ Item {
to: 'opened'
ScriptAction {
script: menu.visible = true
script: {
menu.visible = true
menuOpened()
}
}
NumberAnimation {
......@@ -135,39 +138,26 @@ Item {
property: 'opacity'
target: menu
}
SequentialAnimation {
PauseAnimation {
duration: PopupStyle.animation.openingDuration
}
ScriptAction {
script: menuOpened()
}
}
},
Transition {
from: 'opened'
to: ''
NumberAnimation {
duration: PopupStyle.animation.closingDuration
easing.type: Easing.InOutQuad
property: 'opacity'
target: menu
}
SequentialAnimation {
PauseAnimation {
ScriptAction {
script: menuClosed()
}
NumberAnimation {
duration: PopupStyle.animation.closingDuration
easing.type: Easing.InOutQuad
property: 'opacity'
target: menu
}
ScriptAction {
script: {
visible = false
menuClosed()
}
script: visible = false
}
}
}
......
......@@ -82,16 +82,12 @@ Item {
from: 'opened'
to: ''
NumberAnimation {
duration: PopupStyle.animation.closingDuration
easing.type: Easing.InOutQuad
property: 'opacity'
target: popup
}
SequentialAnimation {
PauseAnimation {
NumberAnimation {
duration: PopupStyle.animation.closingDuration
easing.type: Easing.InOutQuad
property: 'opacity'
target: popup
}
ScriptAction {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment