Skip to content

Commit

Permalink
ch05: fix description of AnimationExample.qml
Browse files Browse the repository at this point in the history
  • Loading branch information
task-jp authored Mar 25, 2022
1 parent 53c7e5e commit a3ca210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ch05-fluid/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ You will catch yourself looking at some animations and just admiring their beaut

<<< @/docs/ch05-fluid/src/animation/AnimationExample.qml#global

The example above shows a simple animation applied on the `x` and `rotation` properties. Each animation has a duration of 4000 milliseconds (msec) and loops forever. The animation on `x` moves the x-coordinate from the object gradually over to 240px. The animation on rotation runs from the current angle to 360 degrees. Both animations run in parallel and are started as soon as the UI is loaded.
The example above shows a simple animation applied on the `x` and `rotation` properties. Each animation has a duration of 4000 milliseconds (msec). The animation on `x` moves the x-coordinate from the object gradually over to 240px. The animation on rotation runs from the current angle to 360 degrees. Both animations run in parallel and are started when the `MouseArea` is clicked.

You can play around with the animation by changing the `to` and `duration` properties, or you could add another animation (for example, on the `opacity` or even the `scale`). **Combining these it could look like the object is disappearing into deep space. Try it out!**

Expand Down

0 comments on commit a3ca210

Please sign in to comment.