qt-quick-for-designers-1:making_things_move
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
qt-quick-for-designers-1:making_things_move [2013/06/22 02:21] – mithat | qt-quick-for-designers-1:making_things_move [2013/07/06 22:52] (current) – [Resources] mithat | ||
---|---|---|---|
Line 5: | Line 5: | ||
* It is a non-visual element (typically) has visual impact. | * It is a non-visual element (typically) has visual impact. | ||
* Changing from one state to another creates dynamics. | * Changing from one state to another creates dynamics. | ||
- | {{youtube> | + | {{youtube> |
==== How to create States ==== | ==== How to create States ==== | ||
Line 149: | Line 149: | ||
===== Transitions ===== | ===== Transitions ===== | ||
* State changes add dynamics, but Transitions make them pretty. | * State changes add dynamics, but Transitions make them pretty. | ||
- | {{youtube> | + | {{youtube> |
==== Animating from one State to another ==== | ==== Animating from one State to another ==== | ||
Line 250: | Line 250: | ||
* You can create collections of animations that happen in a specific order. | * You can create collections of animations that happen in a specific order. | ||
* **SequentialAnimation**: | * **SequentialAnimation**: | ||
- | {{youtube> | + | {{youtube> |
<code javascript> | <code javascript> | ||
SequentialAnimation { | SequentialAnimation { | ||
Line 268: | Line 268: | ||
}</ | }</ | ||
* **ParallelAnimation** | * **ParallelAnimation** | ||
- | {{youtube> | + | {{youtube> |
<code javascript> | <code javascript> | ||
ParallelAnimation { | ParallelAnimation { | ||
Line 309: | Line 309: | ||
=== PauseAnimation === | === PauseAnimation === | ||
* The **PauseAnimation** allows you to add delays in your animation. | * The **PauseAnimation** allows you to add delays in your animation. | ||
- | < | + | < |
PauseAnimation { | PauseAnimation { | ||
target : myRect | target : myRect | ||
Line 315: | Line 315: | ||
}</ | }</ | ||
+ | === Animating with behavior === | ||
+ | <code javascript> | ||
+ | Rectangle { | ||
+ | width: 20; height: 20; color: "# | ||
+ | y: 200 | ||
+ | Behavior on y { | ||
+ | NumberAnimation { | ||
+ | easing.type: | ||
+ | duration: 200 | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | -------------------------------------------------------------- | ||
+ | ====== Resources ====== | ||
+ | * {{: | ||
+ | * All source code is subject to this [[copyright header|copyright]]. |
qt-quick-for-designers-1/making_things_move.1371867673.txt.gz · Last modified: 2013/06/22 02:21 by mithat