summary refs log tree commit diff
path: root/resources/qml/ui/animations/BlinkAnimation.qml
blob: de2a11d892c916b2389cdfceb00905a97d18523b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 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)
    }

}