Skip to content

erikhofer/liquid-loading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liquid Loading

Build npm version

Preview
Demo

Usage

This is a Web Component. Just install and import it, somewhere in your app.

npm install liquid-loading

Example with React (with TypeScript support)

import React from "react";
import ReactDOM from "react-dom";
import "liquid-loading";

ReactDOM.render(
  <liquid-loading></liquid-loading>,
  document.getElementById("root")
);

Example with plain HTML

<!DOCTYPE html>
<html>
  <head>
    <script src="https://unpkg.com/liquid-loading"></script>
  </head>
  <body>
    <liquid-loading></liquid-loading>
  </body>
</html>

License

This is a wrapper around a CodePen project by Mikael Ainalem. It is thus published under the original license.