perspectives

0.2.3 • Public • Published

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!

Package Sidebar

Install

npm i perspectives

Weekly Downloads

1

Version

0.2.3

License

MIT

Unpacked Size

8.65 kB

Total Files

8

Last publish

Collaborators

  • shwilliam