Skip to content

Commit

Permalink
add another comment on BlTransformAnimation
Browse files Browse the repository at this point in the history
  • Loading branch information
rvillemeur committed Sep 5, 2024
1 parent 92f3602 commit 0e7c717
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Chapters/bloc/animation.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ Matrix interpolation is one possibility to manage this.
If you want to have an exact rotation animation, it's better to define your own animation to manage only rotation,
like I did previously in this chapter.

Last: One point about the relative/absolute naming

- *BlTransformAnimation new relative* is a **cumulative** transformation, meaning you can apply it several times and the effects will add up. So it's relative to the current transformation (it transforms by this *delta*)
- *BlTransformAnimation new absolute* converges to the final transformation you asked for. If you apply it again, it will no nothing because the element is already there (it transforms to *that* destination)

It's confusing because relative suggests it could be in coordinates relative to the element's origin, or to some coordinate space other than the world/screen.

### Color transition

Transition from one color to another
Expand Down

0 comments on commit 0e7c717

Please sign in to comment.