mirror of
https://github.com/micku7zu/vanilla-tilt.js
synced 2024-06-01 21:32:11 +02:00
typo on examples page and in README.md (#104)
* fix typo on examples page * typo: same as my PR to main branch for README.md
This commit is contained in:
parent
1590a44958
commit
0a57570399
|
@ -34,7 +34,7 @@ A smooth 3D tilt javascript library forked from [Tilt.js (jQuery version)](https
|
|||
"max-glare": 1, // the maximum "glare" opacity (1 = 100%, 0.5 = 50%)
|
||||
"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
|
||||
"mouse-event-element": null // css-selector or link to an HTML-element that will be listening to 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;
|
||||
|
|
|
@ -315,7 +315,7 @@ document.querySelector("#enable-button").addEventListener("click", function () {
|
|||
<div class="box" id="box-event"></div>
|
||||
<div class="info">
|
||||
<h3>Tilt change event</h3>
|
||||
<p>The tilt change event wil output the x,y & percentages of tilting.</p>
|
||||
<p>The tilt change event will output the x,y & percentages of tilting.</p>
|
||||
<pre><code class="language-javascript">let eventBox = document.querySelector("#box-event");
|
||||
let outputContainer = document.querySelector(".output");
|
||||
VanillaTilt.init(eventBox);
|
||||
|
|
Loading…
Reference in a new issue