Text { id: greetingText font { pixelSize: Theme.fontSizeMedium; capitalization: Font.Capitalize } anchors { bottom: parent.bottom bottomMargin: Theme.paddingMedium horizontalCenter: parent.horizontalCenter } text: { updatesEnabled: timeText.time var greetingText; var time = new Date().getHours(); if (time >= 0 && time < 12){ greetingText = "good <b>morning</b>"; } else if (time >= 12 && time < 16){ greetingText = "good <b>afternoon</b>"; } else if (time >= 16 && time < 21){ greetingText = "good <b>evening</b>"; } else if (time >= 21 && time < 24){ greetingText = "good <b>night</b>"; } } SequentialAnimation on color { id: fadeGreetingTextInOut running: greetingText.text ColorAnimation { from: "#00000000"; to: "#FFFFFFFF"; duration: 15000; easing.type: Easing.InLinear } PauseAnimation { duration: 10000 } ColorAnimation { from: "#FFFFFFFF"; to: "#00000000"; duration: 15000; easing.type: Easing.OutLinear } } }