aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/flowview/FlowSlideUpEffect.qml
blob: 39c78f06bd8801149b31a0b37265340af97cf205 (plain)
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
32
33
34
// Copyright (C) 2026 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick 2.10
import QtQuick.Timeline 1.0

FlowEffect {
    id: effect

    duration: 250
    onStarted: group01.target = transitionView.__toContentItem

    timeline: Timeline {
        startFrame: 0
        endFrame: 1000

        KeyframeGroup {
            id: group01

            property: "y"

            Keyframe {
                frame: 0
                value: transitionView.height
            }

            Keyframe {
                frame: 1000
                value: 0
                easing: effect.easing
            }
        }
    }
}