CASE statement Afterwards applied, although the order of the code is different (fade-out/fade-in onClick button event)

Is there anything else you might want to know, so it becomes more clear what could be the solution? Kind regards, Igor