{"id":6071,"date":"2024-04-14T13:35:27","date_gmt":"2024-04-14T05:35:27","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=6071"},"modified":"2024-04-14T13:35:27","modified_gmt":"2024-04-14T05:35:27","slug":"establish-a-personalized-loader-in-webflow","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/establish-a-personalized-loader-in-webflow\/","title":{"rendered":"Establish a personalized loader in Webflow"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<p>A <strong>loading indicator<\/strong> \u2014 or occasionally referred to as a loading screen \u2014 is the graphical element that greets you on certain websites prior to the primary content of the web page being fully loaded.<\/p>\n<p>Loading indicators can assume a variety of forms! They can range from straightforward designs to elaborate animations. Their primary objective is to engage site visitors while the actual content of the page is being loaded behind the scenes.<\/p>\n<p>There may exist differing opinions on the necessity of employing a loading indicator, nonetheless, given your presence on this page, we infer that you desire to grasp the process of crafting one in Webflow. In this instructional session, we will elucidate how to fabricate a loading indicator and two loading animations using interactions: one being the most elementary loader and the other an animated loader.<\/p>\n<h5>Fabricating a loading indicator<\/h5>\n<ol>\n<li>Designing the loading indicator<\/li>\n<li>Formulating a loader<\/li>\n<li>Establishing the initial state of the loading indicator<\/li>\n<li>Concealing the loading indicator upon page completion<\/li>\n<\/ol>\n<h5>Prior to initiating<\/h5>\n<p>In order to generate this loading indicator, you will need:<\/p>\n<ul>\n<li>Div blocks<\/li>\n<li>A text block<\/li>\n<li>Flexbox<\/li>\n<li>Fixed position<\/li>\n<li>Z-index<\/li>\n<li>Background styles<\/li>\n<li>Display settings<\/li>\n<li>Width and height dimensions<\/li>\n<li>Border radius<\/li>\n<li>Triggers and animations<\/li>\n<\/ul>\n<p>If any of these components or properties are unfamiliar to you, we recommend perusing their guidelines and comprehending the usage of these tools before commencing with this tutorial.<\/p>\n<h2>Designing the loading indicator<\/h2>\n<p>The loading indicator comprises the central loading container and a loader. To craft the primary container of the loading indicator:<\/p>\n<ol>\n<li>Drag a <strong>div block<\/strong> from the add panel directly onto the page body. Assign a class and label it as &#8220;loading-indicator&#8221;.<\/li>\n<li>Activate <strong>flexbox<\/strong>. <strong>Align<\/strong> and <strong>justify<\/strong> its children to the center.<\/li>\n<li>Modulate the positioning \u2014 designate the <strong>position as fixed<\/strong>. Make sure to designate it as <strong>full<\/strong> in order to occupy the entire viewport. Establish the z-index to a notably high number such as 99999. This ensures it remains atop all other elements.<\/li>\n<li>Assign a background color<\/li>\n<\/ol>\n<h2>Formulating a loader<\/h2>\n<p>To fabricate the simplest loader, simply insert a <strong>text block<\/strong>. Double-click on it and input &#8220;loading&#8230;&#8221;. That concludes the fundamental design.<\/p>\n<h5>Insider tip<\/h5>\n<p>Within your loading indicator container, you are at liberty to integrate various elements or assets \u2014 ranging from animated gifs to videos featuring animated loaders, or Lottie animations.<\/p>\n<p>If you opt for gifs or videos, ensure they are not excessively large. It is imperative that the loading time of the preloader does not surpass that of your website. On the contrary, Lottie JSON animation files are compact in size and exceedingly versatile. Following their upload to Webflow, they are rendered as SVG animations. SVG files exhibit superior scalability compared to other formats without compromising quality, thereby rendering seamlessly across varied resolutions.<\/p>\n<blockquote><p>If you incorporate animated loaders (like gifs or videos), ensure they do not exceed an appropriate size. You do not want the loading time of the preloader to overshadow that of your site.<\/p><\/blockquote>\n<p><\/p>\n<h3>Formulating an animated loader &#8211; the bouncing ball<\/h3>\n<p>It is also viable to devise animated loaders using Webflow Interactions. Illustrated below is how we conceived this bouncing ball loader.<\/p>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b948dc7289000d148ab65a_5e6131d146e6b83023d2381b_5b32699097540c1fe84455e7_the252520bouncing252520ball.gif\" title=\"64b948dc7289000d148ab65a_5e6131d146e6b83023d2381b_5b32699097540c1fe84455e7_the252520bouncing252520ball\"><\/div>\n<\/figure>\n<ol>\n<li>Construct a sphere using a <strong>div block<\/strong>. Define a <strong>width<\/strong> and <strong>height<\/strong> of 30x30px, fill in the <strong>background color<\/strong>, and apply a 50% <strong>radius<\/strong>.<\/li>\n<li>Initiate a <strong>page load<\/strong> trigger within the <strong>interactions panel<\/strong>. Draft a novel animation for the <strong>commencement of page loading<\/strong>.<\/li>\n<li>On the canvas, select the sphere and append a variety of <strong>animation actions<\/strong>. Here is how it has been configured:<\/li>\n<\/ol>\n<ul>\n<li>Action 1 \u2014 Propel the sphere upwards by specifying the <strong>y-axis, Y = -100<\/strong> \u2014 mark this as the <strong>initial state<\/strong><\/li>\n<li>Action 2 \u2014 Return the sphere to <strong>Y=0<\/strong> \u2014 <strong>duration<\/strong> 0.5 \u2014 <strong>easing<\/strong> = bounce<\/li>\n<li>Action 3 \u2014 Ascend the sphere back to <strong>Y = -100<\/strong> \u2014 <strong>duration<\/strong> 1 \u2014 <strong>easing<\/strong> = in out cubic<\/li>\n<\/ul>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b948dc7289000d148ab656_5e6131d1dcb1b68cc3e3e134_5b32693f89251a18491f2660_bouncing252520ball252520actions.png\" title=\"64b948dc7289000d148ab656_5e6131d1dcb1b68cc3e3e134_5b32693f89251a18491f2660_bouncing252520ball252520actions\"><\/div>\n<\/figure>\n<ol start=\"4\">\n<li>Conclude the animation and configure it to <strong>loop<\/strong><\/li>\n<\/ol>\n<h2>Establishing the initial state of the loading indicator<\/h2>\n<p>Subsequent to crafting the loading indicator, you are equipped to conceal it, enabling you to manage your other page elements sans the loading indicator obscuring everything. Thus, select the <strong>loading indicator<\/strong> and modify the <strong>display setting<\/strong> to <strong>none<\/strong>.<\/p>\n<h5>Crafting the interaction<\/h5>\n<ol>\n<li>Ensure the loading indicator div block remains selected<\/li>\n<li>Navigate to the <strong>interactions panel<\/strong> and introduce a <strong>page trigger: page load<\/strong>. Thereafter, commence a fresh animation upon <strong>completion of page loading<\/strong>.<\/li>\n<li>Formulate a new <strong>timed animation<\/strong> at this juncture and assign it a title.<\/li>\n<\/ol>\n<h5>Establishing the initial state<\/h5>\n<ol start=\"4\">\n<li>Incorporate a new timed action of <strong>hide\/show<\/strong>. Subsequently, restore the <strong>display setting<\/strong> to <strong>flex<\/strong>. This renders it visible once more.<\/li>\n<li>Designate this action as the <strong>initial state<\/strong>.<\/li>\n<\/ol>\n<h2>Concealing the loading indicator once the page loads<\/h2>\n<p>The initial state determines the initial appearance when the page is first displayed. To ensure the disappearance of your loading indicator once the page completes loading:<\/p>\n<ol>\n<li>Integrate a fresh timed action that sets the <strong>opacity to 0%<\/strong>. Adjust the duration if you desire a swifter animation.<\/li>\n<li>Designate the <strong>display setting as none<\/strong>. This conceals the loading indicator after it fades out (opacity reaches 0%).<\/li>\n<\/ol>\n<h5>Insider tip<\/h5>\n<h6>If you wish to guarantee the loading indicator remains visible for a specified duration (minimum), select the initial action (the opacity alteration) and delay it to activate post, for instance, half a second. This implies that even post page loading, it will persist for half a second before commencing to vanish.<\/h6>\n<p>That concludes the setup of a loading animation!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Use Webflow Interactions to create a custom preloader and animated loaders.","protected":false},"author":2,"featured_media":6072,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[284],"tags":[],"class_list":{"0":"post-6071","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-layout-design","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/6071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/comments?post=6071"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/6071\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/6072"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=6071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=6071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=6071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}