Documentations: Godlike HTML

Preloader

HTML example:

<!-- START: Page Preloader -->
<div class="nk-preloader">
    <!--
         Preloader animation
         data-close-... data used for closing preloader
         data-open-...  data used for opening preloader
    -->
    <div class="nk-preloader-bg"
         style="background-color: #000;"
         data-close-frames="23"
         data-close-speed="1.2"
         data-close-sprites="./assets/images/preloader-bg.png"
         data-open-frames="23"
         data-open-speed="1.2"
         data-open-sprites="./assets/images/preloader-bg-bw.png">
    </div>

    <div class="nk-preloader-content">
        <div>
            <img class="nk-img" src="assets/images/logo.png" alt="GodLike - Gaming Bootstrap 4 Template" width="170">
            <div class="nk-preloader-animation"></div>
        </div>
    </div>

    <div class="nk-preloader-skip">Skip</div>
</div>
<!-- END: Page Preloader -->

Data Attributes:

  • data-close-frames – frames count for close animation;
  • data-close-speed – frames transition speed for close animation;
  • data-close-sprites – url to image file with sprites for close animation;
  • data-open-frames – frames count for open animation;
  • data-open-speed – frames transition speed for open animation;
  • data-open-sprites – address to image file with sprites for open animation;
Was this page helpful?