JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q30733F
  • License MIT

Easily add perspective on mousemove and deviceorientation

Package Exports

  • perspectives

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

Readme

Perspectives

Package version Minified size

Easily add perspective on mousemove and deviceorientation

Perspectives in use

Try perspectives on CodeSandbox

Getting started

Simply include <script src="https://unpkg.com/perspectives"></script> into your HTML file and add the class 'with-perspective' to target elements' parent.

<html>
  <body>

    <div class="with-perspective">
      <h1>I am a 3D title</h1>
    </div>

    <script
      src="https://unpkg.com/perspectives"
    ></script>

  </body>
</html>

Contributing

This project is open to and encourages contributions! Feel free to discuss any bug fixes/features in the issues. If you wish to work on this project:

  1. Fork the project
  2. Create your feature branch (git checkout -b new-feature-branch)
  3. Commit your changes (git commit -am 'add new feature')
  4. Push to the branch (git push origin new-feature-branch)
  5. Submit a pull request!