aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/animation/doc/src/animation.qdoc
blob: 578fb4b849740e3a534815faaa66214d8b02cf3c (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:FDL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU Free Documentation License Usage
** Alternatively, this file may be used under the terms of the GNU Free
** Documentation License version 1.3 as published by the Free Software
** Foundation and appearing in the file included in the packaging of
** this file. Please review the following information to ensure
** the GNU Free Documentation License version 1.3 requirements
** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
** $QT_END_LICENSE$
**
****************************************************************************/

/*!
    \title Qt Quick Examples - Animation
    \example animation
    \brief This is a collection of QML Animation examples.
    \image qml-animations-example.png
    \ingroup qtquickexamples

    \e Animation is a collection of small QML examples relating to animation.
    Each example is a small QML file emphasizing a particular type or feature.

    For more information about animations, visit
    \l{Important Concepts in Qt Quick - States, Transitions and Animations}.

    \include examples-run.qdocinc

    \section1 ColorAnimation

    \e ColorAnimation uses color animations to fade a sky from day to
    night.
    \snippet animation/basics/color-animation.qml 0

    \section1 PropertyAnimation

    \e PropertyAnimation uses number animations to bounce a
    circle up and down.
    \snippet animation/basics/property-animation.qml 0

    \section1 Animators

    \e Animators uses animators to bounce an icon up and down.
    \snippet animation/basics/animators.qml 0

    \section1 Behaviors

    \e Behaviors uses behaviors to move a rectangle to where you click.
    \snippet animation/behaviors/behavior-example.qml 0

    \section1 Wiggly Text

    \e{Wiggly Text} demonstrates using more complex behaviors to animate and
    wiggle some text around as you drag it. It does this by assigning a complex
    binding to each letter:
    \snippet animation/behaviors/wigglytext.qml 0

    Then, it uses behaviors to animate the movement of each letter:
    \snippet animation/behaviors/wigglytext.qml 1

    \section1 Tv Tennis

    \e{Tv Tennis} uses complex behaviors to make the paddles follow a ball to
    simulate an infinite tennis game. Again, a binding which depends on other
    values is applied to the position and a behavior provided the animation.
    \snippet animation/behaviors/tvtennis.qml 0

    \section1 Easing Curves

    \e{Easing Curves} shows off all the easing curves available in Qt Quick
    animations.

    \section1 States

    \e States demonstrates how the properties of an item can vary between
    \l{Qt Quick States}{states}.

    It defines several states:
    \snippet animation/states/states.qml 0

    \section1 Transitions

    \e Transitions takes the States example and animates the property changes
    by setting transitions:
    \snippet animation/states/transitions.qml 0

    \section1 PathAnimation

    \e PathAnimation animates an image along a bezier curve using a
    \l PathAnimation.
    \snippet animation/pathanimation/pathanimation.qml 0

    \section1 PathInterpolator

    \e PathInterpolator animates an image along the same bezier curve, using a
    \l PathInterpolator instead.
    \snippet animation/pathinterpolator/pathinterpolator.qml 0
*/