1 /****************************************************************************
3 ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 ** Contact: http://www.qt-project.org/
7 ** This file is part of the examples of the Qt Toolkit.
9 ** $QT_BEGIN_LICENSE:BSD$
10 ** You may use this file under the terms of the BSD license as follows:
12 ** "Redistribution and use in source and binary forms, with or without
13 ** modification, are permitted provided that the following conditions are
15 ** * Redistributions of source code must retain the above copyright
16 ** notice, this list of conditions and the following disclaimer.
17 ** * Redistributions in binary form must reproduce the above copyright
18 ** notice, this list of conditions and the following disclaimer in
19 ** the documentation and/or other materials provided with the
21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
22 ** the names of its contributors may be used to endorse or promote
23 ** products derived from this software without specific prior written
26 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
32 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
39 ****************************************************************************/
46 width: 420; height: 420
52 NumberAnimation { properties: "y"; easing.type: Easing.OutBounce }
55 NumberAnimation { properties: "y"; easing.type: Easing.OutQuad }
58 Rectangle { color: "red"; width: 100; height: 50; border.color: "black"; radius: 15 }
63 width: 100; height: 50
64 color: "lightsteelblue"
67 Behavior on opacity { NumberAnimation {} }
70 Rectangle { color: "green"; width: 100; height: 50; border.color: "black"; radius: 15 }
75 width: 100; height: 50
76 color: "lightsteelblue"
79 Behavior on opacity { NumberAnimation {} }
82 Rectangle { color: "orange"; width: 100; height: 50; border.color: "black"; radius: 15 }
89 NumberAnimation { properties: "x"; easing.type: Easing.OutBounce }
92 NumberAnimation { properties: "x"; easing.type: Easing.OutQuad }
95 Rectangle { color: "red"; width: 50; height: 100; border.color: "black"; radius: 15 }
100 width: 50; height: 100
101 color: "lightsteelblue"
102 border.color: "black"
104 Behavior on opacity { NumberAnimation {} }
107 Rectangle { color: "green"; width: 50; height: 100; border.color: "black"; radius: 15 }
111 visible: opacity != 0
112 width: 50; height: 100
113 color: "lightsteelblue"
114 border.color: "black"
116 Behavior on opacity { NumberAnimation {} }
119 Rectangle { color: "orange"; width: 50; height: 100; border.color: "black"; radius: 15 }
165 NumberAnimation { properties: "x,y"; easing.type: Easing.OutBounce }
169 NumberAnimation { properties: "x,y"; easing.type: Easing.OutBounce }
172 Rectangle { color: "red"; width: 50; height: 50; border.color: "black"; radius: 15 }
176 visible: opacity != 0
177 width: 50; height: 50
178 color: "lightsteelblue"
179 border.color: "black"
181 Behavior on opacity { NumberAnimation {} }
184 Rectangle { color: "green"; width: 50; height: 50; border.color: "black"; radius: 15 }
188 visible: opacity != 0
189 width: 50; height: 50
190 color: "lightsteelblue"
191 border.color: "black"
193 Behavior on opacity { NumberAnimation {} }
196 Rectangle { color: "orange"; width: 50; height: 50; border.color: "black"; radius: 15 }
200 visible: opacity != 0
201 width: 50; height: 50
202 color: "lightsteelblue"
203 border.color: "black"
205 Behavior on opacity { NumberAnimation {} }
208 Rectangle { color: "red"; width: 50; height: 50; border.color: "black"; radius: 15 }
209 Rectangle { color: "green"; width: 50; height: 50; border.color: "black"; radius: 15 }
210 Rectangle { color: "orange"; width: 50; height: 50; border.color: "black"; radius: 15 }
215 x: 260; y: 250; width: 150
218 NumberAnimation { properties: "x,y"; easing.type: Easing.OutBounce }
222 NumberAnimation { properties: "x,y"; easing.type: Easing.OutBounce }
225 Rectangle { color: "red"; width: 50; height: 50; border.color: "black"; radius: 15 }
229 visible: opacity != 0
230 width: 60; height: 50
231 color: "lightsteelblue"
232 border.color: "black"
234 Behavior on opacity { NumberAnimation {} }
237 Rectangle { color: "green"; width: 30; height: 50; border.color: "black"; radius: 15 }
241 visible: opacity != 0
242 width: 60; height: 50
243 color: "lightsteelblue"
244 border.color: "black"
246 Behavior on opacity { NumberAnimation {} }
249 Rectangle { color: "orange"; width: 50; height: 50; border.color: "black"; radius: 15 }
253 visible: opacity != 0
254 width: 40; height: 50
255 color: "lightsteelblue"
256 border.color: "black"
258 Behavior on opacity { NumberAnimation {} }
261 Rectangle { color: "red"; width: 80; height: 50; border.color: "black"; radius: 15 }