JSPM

motion-on-device

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 24
  • Score
    100M100P100Q45912F
  • License ISC

Motion on device orientation & motion

Package Exports

  • motion-on-device

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 (motion-on-device) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Download & Installation

$ npm i motion-on-device

Code Demo

import MOD from 'mod';
MOD.init();

With parameters

```html MOD.init()

// Optional - Default Values

window.rotation.dampening = 0.01; window.rotation.smoothing = 0.5;

window.rotationRate.dampening = 0.0005; window.rotationRate.smoothing = 0.2;

window.acceleration.sensitivity = 0.1; window.acceleration.dampening = 1; window.acceleration.smoothing = 0.3;


<h3> Tags </h3>

```html

<div data-moa='jellyX' > </div>
<div data-moa='jellyY' > </div>
<div data-moa='jellyZ' > </div>
<div data-moa='jellyXY' > </div>
<div data-moa='jelly3D' > </div>

<div data-moa='giggleX' > </div>
<div data-moa='giggleY' > </div>
<div data-moa='giggleZ' > </div>
<div data-moa='giggleXY' > </div>
<div data-moa='giggle3D' > </div>

<div data-moa='rotateX' > </div>
<div data-moa='rotateY' > </div>
<div data-moa='rotateZ' > </div>
<div data-moa='rotateXY' > </div>
<div data-moa='rotate3D' > </div>

<div data-moa='wobbleX' > </div>
<div data-moa='wobbleY' > </div>
<div data-moa='wobbleZ' > </div>
<div data-moa='wobbleXY' > </div>
<div data-moa='wobble3D' > </div>

Authors or Acknowledgments

  • James Edward Burdge

License

This project is licensed under the MIT License