Skip to content

Commit c68bc41

Browse files
committed
Update to version 1.8.0
1 parent e230549 commit c68bc41

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ <h3>Contributors</h3>
4545
<li>
4646
<a href="https://github.com/rrroyal">rrroyal</a>
4747
</li>
48+
<li>
49+
<a href="https://github.com/Pilskalns">Andžs Pilskalns</a>
50+
</li>
4851
</ul>
4952
<br>
5053
<h3>Other projects</h3>
@@ -146,6 +149,7 @@ <h4>All options with defaults</h4>
146149
transition: true, // Set a transition on enter/exit.
147150
axis: null, // What axis should be enabled. Can be "x" or "y"
148151
reset: true, // If the tilt effect has to be reset on exit.
152+
"reset-to-start": true, // Whether the exit reset will go to [0,0] (default) or [startX, startY]
149153
easing: "cubic-bezier(.03,.98,.52,.99)", // Easing on enter/exit.
150154
glare: false, // if it should have a "glare" effect
151155
"max-glare": 1, // the maximum "glare" opacity (1 = 100%, 0.5 = 50%)
@@ -270,7 +274,8 @@ <h3>Scale on hover</h3>
270274
<div class="info">
271275
<h3>Start tilt position</h3>
272276
<p>Setting this option will tilt the element at specific degrees at page load.</p>
273-
<pre><code class="language-markup">&lt;div data-tilt data-tilt-startX="20" data-tilt-startY="-20"&gt;&lt;/div&gt;</code></pre>
277+
<pre><code class="language-markup">&lt;div data-tilt data-tilt-startX="20" data-tilt-startY="-20" data-tilt-reset-to-start="true"&gt;&lt;/div&gt;</code></pre>
278+
<p><code class="language-markup">"reset-to-start"</code> - on mouse leave will reset the position to [startX, startY]</p>
274279
</div>
275280
</section>
276281

@@ -363,6 +368,9 @@ <h3>Contributors</h3>
363368
<li>
364369
<a href="https://github.com/rrroyal">rrroyal</a>
365370
</li>
371+
<li>
372+
<a href="https://github.com/Pilskalns">Andžs Pilskalns</a>
373+
</li>
366374
</ul>
367375
</div>
368376
<div class="info">

src/vanilla-tilt.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)