Activity Indicator

Material Design Responsive Activity Indicator


Project maintained by tejaswigowda SVG implementation from Fran PĂ©rez

Features



Installation

  1. Download or clone . Then include in html
    
    <link rel='stylesheet' href='ac.css'>
    <script src='ac.js'> </script>
      
  2. OR


  3. Embed using CDN
    
    <script src='https://cdn.jsdelivr.net/npm/activity-indicator-material@1.0.2/ac.js'></script>
    <link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/activity-indicator-material@1.0.2/ac.css'>
      


Usage

  1. Inline HTML
    
    <svg class="spinner" width="65px" height="65px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">  
      

    Result

  2. OR


  3. In JavaScript (click "show Me" button on top of page for demo)
    
    activityIndicator.show() // displays full screen activity indicator
    activityIndicator.hide() // removes activity indicator