Package Exports
- @ppci-mock/custom-shimmer
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ppci-mock/custom-shimmer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Shimmer
Table of contents
Installation
NPM
npm i @ppci-mock/custom-shimmer
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
Usage
Javascript
import '@ppci-mock/custom-shimmer'
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/custom-shimmer/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/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
Property | Type | Description | Possible Values |
hideAnimation | Boolean | Don't show subtle highlight animation | true/false |