All Projects → YuRen-tw → material-circular-loader

YuRen-tw / material-circular-loader

Licence: MIT License
Material Circular Loader in SCSS like a boss. Demo: http://codepen.io/YuRen/details/KdKKax

Programming Languages

CSS
56736 projects

Projects that are alternatives of or similar to material-circular-loader

Whirl
CSS loading animations with minimal effort!
Stars: ✭ 774 (+5853.85%)
Mutual labels:  loader, spinner, loading-spinner
loading
Laravel package to add loading indicator to pages while page is loading.
Stars: ✭ 38 (+192.31%)
Mutual labels:  loader, spinner, loading-spinner
Spinners React
Lightweight SVG/CSS spinners for React
Stars: ✭ 254 (+1853.85%)
Mutual labels:  loader, spinner, loading-spinner
busy-load
A flexible loading-mask jQuery-plugin
Stars: ✭ 76 (+484.62%)
Mutual labels:  loader, spinner, loading-spinner
Text Spinners
Pure text, CSS only, font independent, inline loading indicators
Stars: ✭ 2,728 (+20884.62%)
Mutual labels:  loader, spinner
Vue Element Loading
⏳ Loading inside a container or full screen for Vue.js
Stars: ✭ 234 (+1700%)
Mutual labels:  loader, spinner
respinner
Pretty and customizable svg spinners for React.js
Stars: ✭ 89 (+584.62%)
Mutual labels:  spinner, loading-spinner
material-design-spinner
Material design spinner for apps powered by Starling and Feathers
Stars: ✭ 23 (+76.92%)
Mutual labels:  spinner, material-components
Ng Block Ui
Block UI Loader/Spinner for Angular
Stars: ✭ 135 (+938.46%)
Mutual labels:  loader, spinner
spinners-angular
Lightweight SVG/CSS spinners for Angular
Stars: ✭ 21 (+61.54%)
Mutual labels:  loader, spinner
spinnies
Node.js module to create and manage multiple spinners in command-line interface programs
Stars: ✭ 111 (+753.85%)
Mutual labels:  spinner, loading-spinner
React Loading Overlay
Loading overlays with fade, spinner, message support.
Stars: ✭ 218 (+1576.92%)
Mutual labels:  loader, spinner
ngx-loader-indicator
Awesome loader for angular applications. No wrappers only you elements
Stars: ✭ 44 (+238.46%)
Mutual labels:  loader, loading-spinner
Vue Wait
Complex Loader and Progress Management for Vue/Vuex and Nuxt Applications
Stars: ✭ 1,869 (+14276.92%)
Mutual labels:  loader, spinner
react-native-spinner-button
React Native button component with multiple animated spinners
Stars: ✭ 105 (+707.69%)
Mutual labels:  spinner, loading-spinner
cpp-indicators
A very simple, easy-to-use, and single-header-only C++ library for console based indicators (loading spinners)
Stars: ✭ 13 (+0%)
Mutual labels:  spinner, loading-spinner
SSSwiftUISpinnerButton
SSSwiftUISpinnerButton is a collection of various spinning animations for buttons in SwiftUI.
Stars: ✭ 37 (+184.62%)
Mutual labels:  loader, loading-spinner
Vue Loaders
Vue + loaders.css
Stars: ✭ 127 (+876.92%)
Mutual labels:  loader, spinner
Jtmaterialspinner
An iOS material design spinner view
Stars: ✭ 127 (+876.92%)
Mutual labels:  loader, spinner
InstagramActivityIndicator
Activity Indicator similar to Instagram's
Stars: ✭ 49 (+276.92%)
Mutual labels:  loader, spinner

Material Circular Loader

Google Material design: Progress & activity

Usage

HTML

<div class="circular-loader">
  <div class="stroke">
    <div class="stroke-left"></div>
    <div class="stroke-right"></div>
  </div>
</div> 

SCSS

.circular-loader {
  @include loader_circle(stroke); // class name of stroke
}

Size

Width and height are 2em. (radius of circle is 1em)
Use font-size to change the loader size.

SCSS

.circular-loader {
  @include loader_circle(stroke);
  font-size: 30px; // width and height become 60px
}

Single Color

Use color to change the loader color.

SCSS

.circular-loader {
  @include loader_circle(stroke);
  color: #2a74f6;
}

Multiple Colors

Include mixin loader_stroke_colors to change the loader color.

HTML

<div class="Cir my-color"> <!-- add a class -->
  <div class="S">
    <div class="S-left"></div>
    <div class="S-right"></div>
  </div>
</div> 

SCSS

.Cir {
  @include loader_circle(S);
  @include loader_stroke_colors(
    S,
    my-color,
    (#4285f4, #ea4335, #fbbc05, #34a853)
  );
  // (classNameOfStroke, addedClassName, listOfColors)
}

There are some lists of colors can be used:

List of colors Description Colors
$google_colors Google main colors Blue, Red, Yellow, Green
$google_colors_old (Old version)
$g_plus_colors Colors in Google+ app 7 colors
$google_pride_colors #prideforeveryone 6 colors

Pride For Everyone

Stroke Width

Stroke width defaults to (3/14) * 1em.
Include mixin loader_stroke_width to change the stroke width.

HTML

<div class="Cir new_width"> <!-- add a class -->
  <div class="S">
    <div class="S-left"></div>
    <div class="S-right"></div>
  </div>
</div> 

SCSS

.Cir {
  @include loader_circle(S);
  @include loader_stroke_width(S, new_width, 10px);
  // (classNameOfStroke, addedClassName, widthOfStroke)
}

Rotate Step

Rotate step defaults to 3 / 5. (a 5 pointed star shape)
Include mixin loader_stroke_rotate_step to change the rotate step.

HTML

<div class="Cir seven_star"> <!-- add a class -->
  <div class="S">
    <div class="S-left"></div>
    <div class="S-right"></div>
  </div>
</div> 

SCSS

.Cir {
  @include loader_circle(S);
  @include loader_stroke_rotate_step(seven_star, 3/7);
  // (addedClassName, step)
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].