GithubHelp home page GithubHelp logo

aminkodaganur / angular-material-preloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from waseembepari/angular-material-preloader

0.0 2.0 0.0 34 KB

An Material Design Preloader directive for angular(without using jquery) that recreates the Material pre-loader (as seen on inbox).

License: MIT License

CSS 100.00%

angular-material-preloader's Introduction

#angular-materialPreloader An Material Design Preloader directive for angular(without using jquery) that recreates the Material pre-loader (as seen on inbox).

demo is at http://waseembepari.github.io/angular-material-preloader

How to use angular-materialPreloader?

Add the Following code to the <head> of your document.

<link href="css/materialPreloader.min.css" rel="stylesheet prefetch">
<script type="text/javascript" src="js/angular-Material-Preloader.min.js"></script>

Place the template folder in your root directory

Add angularMaterialPreloader dependency to your module

var myApp = angular.module("app", ["angularMaterialPreloader"])

Include <div material-preloader ></div> directive in your html template.

<div material-preloader position="top" height="5px" col1='#159756' col2='#da4733' col3='#3b78e7' col4='#fdba2c' ></div>
// material-preloader as attribute

Or Include <material-preloader ></material-preloader> directive as element in your html template.

<material-preloader position="top" height="5px" col1='#159756' col2='#da4733' col3='#3b78e7' col4='#fdba2c' ></material-preloader>
// material-preloader as element

VARIABLE

$scope.materialPreloader = TRUE/FALSE;
// Use true or false to on/off the materialpreloader.

materialPreloader Options

attribute Required Description Options Default
position No Position to place the preloader top/bottom top
height No The height of the preloader bar any length 5px
col1 No Color 1 option any color #159756
col2 No Color 2 option any color #da4733
col3 No Color 3 option any color #3b78e7
col4 No Color 4 option any color #fdba2c

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.