I have figured it out. However, now I need to know how to change the point in time when the logo moves to the top left corner, i.e. when the animation is happening. I believe that this can be changed in the template.css file for the css class .animated-text. However, in template.css I was not able to determine exactly which parameter to change to make the animation occur earlier in the scrolling, for example right when the user scrolls a little bit.
Hi.
For CSS editing use custom.css file only. Never make changes in template.css. Create custom.css file (read Helix doc about it) copy code snippet from template.css to custom.css and edit it there.
To make the animation occur earlier in the scrolling, create custom.js (read Helix doc about it). Find in main.js code snippet, which is responsible for this behavior copy it and paste to custom.js. Then edit.
Here is part of the code for this in main.js.

jQuery(function ($) {
$(window).on('scroll', function () {
const scrollPosition = $(window).scrollTop();
if (scrollPosition > 1090) { //if window scroll position is more than 1090 px from top then the animation begins
$('.animated-text').addClass('animate');
$('.animated-text-section').css('zIndex', '9999');
} else {
$('.animated-text').removeClass('animate');
$('.animated-text-section').css('zIndex', '1');
}
});
});