Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick
- ShaderEffect {
- id: genieEffect
- width: 160; height: width
- anchors.centerIn: parent
- property variant source
- mesh: GridMesh { resolution: Qt.size(10, 10) }
- property real minimize: 0.0
- property real bend: 0.0
- property bool minimized: false
- property real side: 1.0
- ParallelAnimation {
- id: animMinimize
- running: genieEffect.minimized
- SequentialAnimation {
- PauseAnimation { duration: 300 }
- NumberAnimation {
- target: genieEffect; property: 'minimize';
- to: 1; duration: 700;
- easing.type: Easing.InOutSine
- }
- PauseAnimation { duration: 1000 }
- }
- SequentialAnimation {
- NumberAnimation {
- target: genieEffect; property: 'bend'
- to: 1; duration: 700;
- easing.type: Easing.InOutSine }
- PauseAnimation { duration: 1300 }
- }
- }
- ParallelAnimation {
- id: animNormalize
- running: !genieEffect.minimized
- SequentialAnimation {
- NumberAnimation {
- target: genieEffect; property: 'minimize';
- to: 0; duration: 700;
- easing.type: Easing.InOutSine
- }
- PauseAnimation { duration: 1300 }
- }
- SequentialAnimation {
- PauseAnimation { duration: 300 }
- NumberAnimation {
- target: genieEffect; property: 'bend'
- to: 0; duration: 700;
- easing.type: Easing.InOutSine }
- PauseAnimation { duration: 1000 }
- }
- }
- vertexShader: "genieeffect.vert.qsb"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement