-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add contributors on README and gyroscope documentation
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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:[email protected]">[email protected]</a>> (Typings & Glare Effect) | ||
- [Oleg Postoev](https://github.com/Dok11) | ||
- [Matteo Rigon](https://github.com/matteo-rigon) (Device orientation support) | ||
|
||
### License | ||
|
||
MIT License |