Materialize Preloader
The Materialize Preloader is a loading animation that can be used to indicate that content is currently being loaded on a page. It is a great visual cue for users to let them know that something is happening in the background.
Syntax
To use the Materialize Preloader, simply add the preloader-wrapper
class to an element. Then, add the appropriate color class (blue
, red
, green
, yellow
) to specify the color of the Preloader. Finally, add one or more child elements with the class spinner-layer
for each layer of the Preloader.
<div class="preloader-wrapper blue">
<div class="spinner-layer spinner-white-only">
<div class="circle-clipper left">
<div class="circle"></div>
</div><div class="gap-patch">
<div class="circle"></div>
</div><div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
Use and Importance
The Materialize Preloader is an important visual cue for users to know that content is being loaded. It can be added to a page during long loading times to prevent users from thinking that the page is broken or frozen. The Preloader can be used on any type of website or application that requires content to be dynamically loaded without refreshing the page.
Example
Here is an example of how to use the Materialize Preloader:
<div class="row">
<div class="col s12 center-align">
<h4>Loading Content...</h4>
<div class="preloader-wrapper active">
<div class="spinner-layer spinner-blue-only">
<div class="circle-clipper left">
<div class="circle"></div>
</div><div class="gap-patch">
<div class="circle"></div>
</div><div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
</div>
</div>
Summary
The Materialize Preloader is a loading animation that can be used to indicate to users that content is currently being loaded on a website or application. It is important to use the Preloader during long loading times to prevent users from thinking that the page is broken or frozen. The syntax for using the Materialize Preloader is simple and can be easily customized to match the theme of your website or application.