Last active
February 19, 2018 20:52
-
-
Save kimmoli/f270fc04902b8632b29330bb0ef9465f to your computer and use it in GitHub Desktop.
Jep
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Page { | |
Rectangle { | |
id: rect | |
anchors.fill: parent | |
color: "white" | |
opacity: 1.0 | |
Behavior on opacity { | |
NumberAnimation { | |
duration: 450 | |
easing.type: Easing.InOutQuad | |
} | |
} | |
} | |
Timer { | |
running: true | |
interval: 500 | |
repeat: true | |
onTriggered: { rect.opacity = (rect.opacity == 1.0) ? 0.0 : 1.0 } | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment