An open API service indexing awesome lists of open source software.

https://github.com/shwilliam/perspectives

😎 Easiest perspective simulation on mousemove and deviceorientation
https://github.com/shwilliam/perspectives

perspective

Last synced: about 1 year ago
JSON representation

😎 Easiest perspective simulation on mousemove and deviceorientation

Awesome Lists containing this project

README

          

# Perspectives

![Package version](https://img.shields.io/npm/v/perspectives.svg)
![Minified size](https://img.shields.io/bundlephobia/min/perspectives.svg)

> Easily add perspective on mousemove and deviceorientation

![Perspectives in use](https://user-images.githubusercontent.com/38357771/54791513-9dac1900-4c10-11e9-89f3-07284ba9d6bb.gif)

[![Try perspectives on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/1y42nkk4rl?fontsize=14)

## Getting started

Simply include `` into your HTML file and add the class 'with-perspective' to target elements' parent.

```html


I am a 3D title


```

## Contributing

This project is open to and encourages contributions! Feel free to discuss any bug fixes/features in the [issues](https://github.com/shwilliam/perspectives/issues). If you wish to work on this project:

1. [Fork the project](https://github.com/shwilliam/perspectives)
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!](https://github.com/shwilliam/perspectives/pull/new/master)