I draw them in illustrator and animate in After Effects Using the Bodymovin plugin, I save it in json format and upload it to the site https://lottiefiles.com. After that I get a code that you can insert into html objects on a Tilda or into sites written from scratch. In general, wherever you can insert the code.
Wight and high you set as you want to see your preloader on the page.
You save the data in the code editing panel. You go out. You save the changes in the zero block. You go out.
You open the block library and type T123 in the search bar. You create an html block.
1. <style>
2. #rec166025753 {
3. position: fixed;
4. left: 0;
5. top: 0;
6. right:0;
7. bottom:0;
8. z-index: 100005;
9. }
10. </style>
11. <script>
12. $("body").css("overflow","hidden");
13. $(document).ready(function() {
14. setTimeout(function() {
15. $("#rec166025753").delay(350).fadeOut('slow');
16. $("body").css("overflow","");
17. window.dispatchEvent(new Event('resize'));
18. }, 3000);
19. });
20. $(window).on('load', function () {
21. $("#rec166025753").delay(350).fadeOut('slow');
22. setTimeout(function() {
23. $("body").css("overflow","");
24. window.dispatchEvent(new Event('resize'));
25. }, 400);
26. });
27. </script>
The code is taken from here https://mo-ti.ru/preloader. Thank you very much mo-ti!
You go into the settings of our zero block, in which you inserted the animated preloader code.
Now we need to put it in the right place.
There are two possibilities for its placement.
You can copy these two blocks and paste them directly on the pages where you need them.
Only after placing these blocks on a new page, you need to change the id of the preloader block in the code in block T123.