mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-28 05:58:47 +03:00
96f791daf1
See also: https://daniel.haxx.se/blog/2023/01/08/copyright-without-years/ https://hynek.me/til/copyright-years/
32 lines
637 B
QML
32 lines
637 B
QML
// SPDX-FileCopyrightText: Nheko Contributors
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtGraphicalEffects 1.12
|
|
import QtQuick 2.12
|
|
|
|
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)
|
|
}
|
|
|
|
}
|