mirror of https://github.com/Nheko-Reborn/nheko
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
601 B
31 lines
601 B
// SPDX-FileCopyrightText: Nheko Contributors
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick
|
|
|
|
SequentialAnimation {
|
|
property alias target: numberAnimation.target
|
|
property alias glowDuration: numberAnimation.duration
|
|
property int pauseDuration: 150
|
|
property double offset: 0
|
|
|
|
loops: Animation.Infinite
|
|
|
|
PauseAnimation {
|
|
duration: pauseDuration * offset
|
|
}
|
|
|
|
NumberAnimation {
|
|
id: numberAnimation
|
|
|
|
property: "opacity"
|
|
from: 0
|
|
to: 1
|
|
}
|
|
|
|
PauseAnimation {
|
|
duration: pauseDuration * (1 - offset)
|
|
}
|
|
|
|
}
|
|
|