Skip to content

Instantly share code, notes, and snippets.

@kimmoli

kimmoli/blinky.qml

Last active Feb 19, 2018
Embed
What would you like to do?
Jep
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