It took me some time to settle on the appropriate animation. However, the following day, I decided to discard it. I noticed that it gave my website a slightly childish appearance. To avoid losing the code in the depths of source control version history, I chose to post the source code on my blog instead. The url is:
https://viktorbresan.blogspot.com/2024/01/...