forked from Shinonome/dots-hyprland
settings: make pages fly up
This commit is contained in:
@@ -228,19 +228,36 @@ ApplicationWindow {
|
|||||||
easing.type: Appearance.animation.elementMoveExit.type
|
easing.type: Appearance.animation.elementMoveExit.type
|
||||||
easing.bezierCurve: Appearance.animationCurves.emphasizedFirstHalf
|
easing.bezierCurve: Appearance.animationCurves.emphasizedFirstHalf
|
||||||
}
|
}
|
||||||
PropertyAction {
|
ParallelAnimation {
|
||||||
target: pageLoader
|
PropertyAction {
|
||||||
property: "source"
|
target: pageLoader
|
||||||
value: root.pages[root.currentPage].component
|
property: "source"
|
||||||
|
value: root.pages[root.currentPage].component
|
||||||
|
}
|
||||||
|
PropertyAction {
|
||||||
|
target: pageLoader
|
||||||
|
property: "anchors.topMargin"
|
||||||
|
value: 20
|
||||||
|
}
|
||||||
}
|
}
|
||||||
NumberAnimation {
|
ParallelAnimation {
|
||||||
target: pageLoader
|
NumberAnimation {
|
||||||
properties: "opacity"
|
target: pageLoader
|
||||||
from: 0
|
properties: "opacity"
|
||||||
to: 1
|
from: 0
|
||||||
duration: 200
|
to: 1
|
||||||
easing.type: Appearance.animation.elementMoveEnter.type
|
duration: 200
|
||||||
easing.bezierCurve: Appearance.animationCurves.emphasizedLastHalf
|
easing.type: Appearance.animation.elementMoveEnter.type
|
||||||
|
easing.bezierCurve: Appearance.animationCurves.emphasizedLastHalf
|
||||||
|
}
|
||||||
|
NumberAnimation {
|
||||||
|
target: pageLoader
|
||||||
|
properties: "anchors.topMargin"
|
||||||
|
to: 0
|
||||||
|
duration: 200
|
||||||
|
easing.type: Appearance.animation.elementMoveEnter.type
|
||||||
|
easing.bezierCurve: Appearance.animationCurves.emphasizedLastHalf
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user