perspectives
v0.2.3
Published
Easily add perspective on mousemove and deviceorientation
Downloads
17
Maintainers
Readme
Perspectives
Easily add perspective on mousemove and deviceorientation
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:
- Fork the project
- Create your feature branch (
git checkout -b new-feature-branch
) - Commit your changes (
git commit -am 'add new feature'
) - Push to the branch (
git push origin new-feature-branch
) - Submit a pull request!