aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/animation/doc/src/animation.qdoc
blob: 3df0caf322cef7a6983d7e4bcdd0bdaca02f0a0c (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
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** 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 Digia.  For licensing terms and
** conditions see http://qt.digia.com/licensing.  For further information
** use the contact form at http://qt.digia.com/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: http://www.gnu.org/copyleft/fdl.html.
** $QT_END_LICENSE$
**
****************************************************************************/

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

    This is a collection of small QML examples relating to animation. Each example is
    a small QML file emphasizing a particular element or feature.

    ColorAnimation demonstrates using a color animation to fade a sky from day to night.
    \snippet quick/animation/basics/color-animation.qml 0

    PropertyAnimation demonstrates using a number animation to bounce a circle up and down.
    \snippet quick/animation/basics/property-animation.qml 0

    Behaviors demonstrates using behaviors to animate moving a rectangle to whereever you click.
    \snippet quick/animation/behaviors/behavior-example.qml 0

    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 quick/animation/behaviors/wigglytext.qml 0
    Then, it uses behaviors to animate the movement on each letter:
    \snippet quick/animation/behaviors/wigglytext.qml 1

    Tv Tennis demonstrates using more complex behaviors to get paddles following a ball for an infinite game.
    Again a binding which depends on other values is applied to the position and a behavior provided the animation.
    \snippet quick/animation/behaviors/tvtennis.qml 0

    Easing Curves shows off all the easing curves available in Qt Quick animations.

    States demonstrates how the properties of an item can vary between states.
    It defines several states:
    \snippet quick/animation/states/states.qml 0
    Note that there is also the implicit 'base state' from properties set directly on elements.

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

    PathAnimation animates an image along a beizer curve using a PathAnimation.
    \snippet quick/animation/pathanimation/pathanimation.qml 0

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