Hello all,
What is the difference between
and this where I simply move the same code into functions.
As you can see in the second example the animation is not triggered by the button.
Its not necessary in this simple example but I find it useful in larger project to organise the code is there some guidance on this topics somewhere else too?