New to Kendo UI for jQuery? Download free 30-day trial

Appearance

The Loader component provides several predefined appearance options such as different types, sizes and theme colors.

Type

The Loader allows you to set different animations by using the type input property.

The available types values are:

  • pulsing (Default)—Applies pulsing animation on the Loader.
  • infinite-spinner—Applies infinite-spinner animation on the Loader.
  • converging-spinner—Applies converging-spinner animation on the Loader.
    <div class="loader">
        <span id="pulsing"></span>
        <span id="infinite-spinner"></span>
        <span id="converging-spinner"></span>
    </div>
    <script>
        $(document).ready(function(){
            $("#pulsing").kendoLoader({
                type:'pulsing',
            });

            $("#infinite-spinner").kendoLoader({
                type:'infinite-spinner',
            });

            $("#converging-spinner").kendoLoader({
                type:'converging-spinner',
            });
        });
    </script>
    <style>
      .loader {
        display: flex;
        justify-content: center;
        align-items: center;
        height:450px;
      }

      .loader>span {        
        margin: 50px;
      }
    </style>

Theme Color

The Loader allows you to specify predefined theme colors.

The available themeColor values are:

  • primary (Default)—Applies coloring based on primary theme color.
  • secondary—Applies coloring based on secondary theme color.
  • tertiary— Applies coloring based on tertiary theme color.
  • info—Applies coloring based on info theme color.
  • success— Applies coloring based on success theme color.
  • warning— Applies coloring based on warning theme color.
  • error— Applies coloring based on error theme color.
  • dark— Applies coloring based on dark theme color.
  • light— Applies coloring based on light theme color.
  • inverse— Applies coloring based on inverted theme color.
    <div class="loader">
        <input id='themeColor'/>
        <span id="loader"></span>
    </div>
    <script>
        $(document).ready(function(){
            var loader = $("#loader").kendoLoader({
                themeColor:'secondary',
            }).data("kendoLoader");

            $("#themeColor").kendoDropDownList({
                dataSource:["primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse" ],
                change: function(e){
                    loader.themeColor(e.sender.text());
                }
            });
        });
    </script>
    <style>
      .loader {
        display: flex;
        justify-content: center;
        align-items: center;
        height:450px;
      }     
    </style>

Size

The Loader allows you to set different sizes.

The available size values are:

  • small
  • medium (Default)
  • large
    <div class="loader">
        <span id="loader-small"></span>
        <span id="loader-medium"></span>
        <span id="loader-large"></span>
    </div>
    <script>
        $(document).ready(function(){
            $("#loader-small").kendoLoader({
                size:'small',
            });

            $("#loader-medium").kendoLoader({
                size:'medium',
            });

            $("#loader-large").kendoLoader({
                size:'large',
            });
        });
    </script>
    <style>
      .loader {
        display: flex;
        justify-content: center;
        align-items: center;
        height:450px;
      }

      .loader>span {        
        margin: 50px;
      }
    </style>

See Also

In this article
Not finding the help you need? Improve this article