Git Product home page Git Product logo

wc-epic-spinners's Introduction

Web Component Epic Spinners

npm npm

Web Component implementations of epic-spinners by EpicMax

Installation

npm install --save wc-epic-spinners

OR

yarn add wc-epic-spinners

Usage

Javascript

  import 'wc-epic-spinners';
  
  const spinner = document.createElement('atom-spinner');
  document.body.append(spinner);

or for a specific spinner

  import 'wc-epic-spinners/dist/AtomSpinner.js';

  const spinner = document.createElement('atom-spinner');
  document.body.append(spinner);

HTML

<body>
  <atom-spinner></atom-spinner>

  <script src="wc-epic-spinners.js"></script>
</body>

or for a specific spinner

<body>
  <atom-spinner></atom-spinner>

  <script src="wc-epic-spinners/dist/AtomSpinner.js"></script>
</body>

Configuration

You can easily configure a spinner's size, color, and animation speed by either setting an attribute on the spinner element or by assigning a value to a corresponding css variable.

Attributes

<atom-spinner
  color="#ff1d5e"
  duration="1"
  size="60"
></atom-spinner>

CSS Variables (CSS Custom Properties)

<style>
  :root {
    --atom-spinner-color: #ff1d5e;
    --atom-spinner-duration: 1s;
    --atom-spinner-size: 60px;
  }
</style>

<atom-spinner></atom-spinner>

Components list

<atom-spinner
  color="#ff1d5e"
  duration="1"
  size="60"
></atom-spinner>

<breeding-rhombus-spinner
  color="#ff1d5e"
  duration="2"
  size="65"
></breeding-rhombus-spinner>

<circles-to-rhombuses-spinner
  color="#ff1d5e"
  count="3"
  duration="1.2"
  size="15"
></circles-to-rhombuses-spinner>

<fingerprint-spinner
  color="#ff1d5e"
  duration="1.5"
  size="64"
></fingerprint-spinner>

<flower-spinner
  color="#ff1d5e"
  duration="2.5"
  size="70"
></flower-spinner>

<fulfilling-bouncing-circle-spinner
  color="#ff1d5e"
  duration="4"
  size="60"
></fulfilling-bouncing-circle-spinner>

<fulfilling-square-spinner
  color="#ff1d5e"
  duration="4"
  size="50"
></fulfilling-square-spinner>

<half-circle-spinner
  color="#ff1d5e"
  duration="1"
  size="60"
></half-circle-spinner>

<hollow-dots-spinner
  color="#ff1d5e"
  count="3"
  duration="1"
  size="15"
></hollow-dots-spinner>

<intersecting-circles-spinner
  color="#ff1d5e"
  duration="1.2"
  size="70"
></intersecting-circles-spinner>

<looping-rhombuses-spinner
  color="#ff1d5e"
  duration="2.5"
  size="15"
></looping-rhombuses-spinner>

<orbit-spinner
  color="#ff1d5e"
  duration="1.2"
  size="55"
></orbit-spinner>

<pixel-spinner
  color="#ff1d5e"
  duration="2"
  size="70"
></pixel-spinner>

<radar-spinner
  color="#ff1d5e"
  duration="2"
  size="60"
></radar-spinner>

<scaling-squares-spinner
  color="#ff1d5e"
  duration="1.25"
  size="65"
></scaling-squares-spinner>

<self-building-square-spinner
  color="#ff1d5e"
  duration="6"
  size="40"
></self-building-square-spinner>

<semipolar-spinner
  color="#ff1d5e"
  duration="2"
  size="65"
></semipolar-spinner>

<spring-spinner
  color="#ff1d5e"
  duration="3"
  size="60"
></spring-spinner>

<swapping-squares-spinner
  color="#ff1d5e"
  duration="1"
  size="65"
></swapping-squares-spinner>

<trinity-rings-spinner
  color="#ff1d5e"
  duration="1.5"
  size="66"
></trinity-rings-spinner>

Support?

  • Star the repo โญ
  • Create pull requests

License

MIT license.

wc-epic-spinners's People

Contributors

craig-jennings avatar

Stargazers

Nosa Clement Obasuyi avatar

Watchers

James Cloos avatar

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.