| 1 |
// SPDX-FileCopyrightText: Nheko Contributors |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: GPL-3.0-or-later |
| 4 |
|
| 5 |
import QtQuick |
| 6 |
|
| 7 |
SequentialAnimation { |
| 8 |
property alias target: numberAnimation.target |
| 9 |
property alias glowDuration: numberAnimation.duration |
| 10 |
property int pauseDuration: 150 |
| 11 |
property double offset: 0 |
| 12 |
|
| 13 |
loops: Animation.Infinite |
| 14 |
|
| 15 |
PauseAnimation { |
| 16 |
duration: pauseDuration * offset |
| 17 |
} |
| 18 |
|
| 19 |
NumberAnimation { |
| 20 |
id: numberAnimation |
| 21 |
|
| 22 |
property: "opacity" |
| 23 |
from: 0 |
| 24 |
to: 1 |
| 25 |
} |
| 26 |
|
| 27 |
PauseAnimation { |
| 28 |
duration: pauseDuration * (1 - offset) |
| 29 |
} |
| 30 |
|
| 31 |
} |