GithubHelp home page GithubHelp logo

seanwuapps / stencil-loading-spinner Goto Github PK

View Code? Open in Web Editor NEW
20.0 2.0 8.0 185 KB

Loading spinner component created using stencil

License: MIT License

CSS 67.99% HTML 26.13% JavaScript 5.88%
stenciljs web-component loading-spinner

stencil-loading-spinner's Introduction

Stencil Loading Spinner Component

Stencil is a compiler for building fast web apps using Web Components.

Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.

Stencil components are just Web Components, so they work in any major framework or with no framework at all. In many cases, Stencil can be used as a drop in replacement for traditional frontend frameworks given the capabilities now available in the browser, though using it as such is certainly not required.

Stencil also enables a number of key capabilities on top of Web Components, in particular Server Side Rendering (SSR) without the need to run a headless browser, pre-rendering, and objects-as-properties (instead of just strings).

Get started

Clone this repo and cd into the folder, then run the following commands

npm install
npm start

To view the build, start an HTTP server inside of the /www directory.

To watch for file changes during develop, run:

npm run dev

To build the app for production, run:

npm run build

Usage

Preview

Preview

<loading-spinner type="android" color="green"></loading-spinner>
<loading-spinner type="circle" color="#333333"></loading-spinner>
<loading-spinner type="bars" color="orange"></loading-spinner>
<loading-spinner type="bars" color="blue"></loading-spinner>
<loading-spinner type="ios" color="red"></loading-spinner>

stencil-loading-spinner's People

Contributors

adamdbradley avatar danbucholtz avatar jgw96 avatar mlynch avatar peterennis avatar seanwuapps avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stencil-loading-spinner's Issues

How To Include and Use in Stencil App

Hi there! While I understand that this may not be a direct issue with this particular component, I was curious on how you would include this amazing work in a stencil app and use it. Also, best practices for making it conditionally displayed when content is loading.

Thanks so much for your help!

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.