mirror of
https://github.com/micku7zu/vanilla-tilt.js
synced 2024-06-10 17:52:14 +02:00
Add contributors on README and gyroscope documentation
This commit is contained in:
parent
3cf9615b1c
commit
c5fab87641
11
README.md
11
README.md
|
@ -35,6 +35,11 @@ A smooth 3D tilt javascript library forked from [Tilt.js (jQuery version)](https
|
|||
"glare-prerender": false, // false = VanillaTilt creates the glare elements for you, otherwise
|
||||
// you need to add .js-tilt-glare>.js-tilt-glare-inner by yourself
|
||||
"mouse-event-element": null // css-selector or link to HTML-element what will be listen mouse events
|
||||
gyroscope: true // Boolean to enable/disable device orientation detection,
|
||||
gyroscopeMinAngleX: -45 // This is the bottom limit of the device angle on X axis, meaning that a device rotated at this angle would tilt the element as if the mouse was on the left border of the element;
|
||||
gyroscopeMaxAngleX: 45 // This is the top limit of the device angle on X axis, meaning that a device rotated at this angle would tilt the element as if the mouse was on the right border of the element;
|
||||
gyroscopeMinAngleY: -45 // This is the bottom limit of the device angle on Y axis, meaning that a device rotated at this angle would tilt the element as if the mouse was on the top border of the element;
|
||||
gyroscopeMaxAngleY: 45 // This is the top limit of the device angle on Y axis, meaning that a device rotated at this angle would tilt the element as if the mouse was on the bottom border of the element;
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -93,6 +98,12 @@ Original library: [Tilt.js](http://gijsroge.github.io/tilt.js/)
|
|||
|
||||
Original library author: [Gijs Rogé](https://twitter.com/GijsRoge)
|
||||
|
||||
#### Contributors
|
||||
|
||||
- [Livio Brunner](https://github.com/BrunnerLivio) <<a href="mailto:contact@brunnerliv.io">contact@brunnerliv.io</a>> (Typings & Glare Effect)
|
||||
- [Oleg Postoev](https://github.com/Dok11)
|
||||
- [Matteo Rigon](https://github.com/matteo-rigon) (Device orientation support)
|
||||
|
||||
### License
|
||||
|
||||
MIT License
|
||||
|
|
Loading…
Reference in a new issue