1.1.3 • Published 5 years ago

@ppci/custom-shimmer v1.1.3

Weekly downloads
17
License
ISC
Repository
-
Last release
5 years ago

Shimmer

Table of contents

Installation

NPM

npm i @ppci/custom-shimmer

// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs

Usage

Javascript

import '@ppci/custom-shimmer'

Browser

<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/custom-shimmer/builds/index.min.js" />

<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/custom-shimmer/builds/legacy.min.js" />

<!-- Component -->
<custom-shimmer
  hideAnimation=${Boolean}
></custom-shimmer>

Styling

custom-shimmer {
  --height: 24px;
  --width: 200px;
  --animation-duration: 2s;

  /* use 50% to make a circular shimmer */
  --border-radius: 0;
}

Properties

1.1.3

5 years ago

1.1.2

5 years ago

1.1.0

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago