Floating Color Animation
-
Hello, I want to give a floating color animation to a text, as in the picture. How can I apply this to a Label?
-
Hello, I want to give a floating color animation to a text, as in the picture. How can I apply this to a Label?
@NullByte you could e.g. use a LinearGradient to fill a non-visible Label:
Window { width: 640 height: 480 visible: true color: "white" Rectangle { anchors.centerIn: parent width: text.width + 20 height: text.height + 20 color: "#2D0B5A" Label { id: text anchors.centerIn: parent font.pointSize: 42 text: "Win by saving." visible: false } LinearGradient { anchors.fill: text start: Qt.point(text.x, text.y) end: Qt.point(text.x + text.width, text.y + text.height) source: text gradient: Gradient { GradientStop { position: 0 color: "#52C7F6" } GradientStop { position: 0.3 color: "#FF77E1" } } } } }