@@ -45,6 +45,9 @@ <h3>Contributors</h3>
45
45
< li >
46
46
< a href ="https://github.com/rrroyal "> rrroyal</ a >
47
47
</ li >
48
+ < li >
49
+ < a href ="https://github.com/Pilskalns "> Andžs Pilskalns</ a >
50
+ </ li >
48
51
</ ul >
49
52
< br >
50
53
< h3 > Other projects</ h3 >
@@ -146,6 +149,7 @@ <h4>All options with defaults</h4>
146
149
transition: true, // Set a transition on enter/exit.
147
150
axis: null, // What axis should be enabled. Can be "x" or "y"
148
151
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]
149
153
easing: "cubic-bezier(.03,.98,.52,.99)", // Easing on enter/exit.
150
154
glare: false, // if it should have a "glare" effect
151
155
"max-glare": 1, // the maximum "glare" opacity (1 = 100%, 0.5 = 50%)
@@ -270,7 +274,8 @@ <h3>Scale on hover</h3>
270
274
< div class ="info ">
271
275
< h3 > Start tilt position</ h3 >
272
276
< p > Setting this option will tilt the element at specific degrees at page load.</ p >
273
- < pre > < code class ="language-markup "> <div data-tilt data-tilt-startX="20" data-tilt-startY="-20"></div></ code > </ pre >
277
+ < pre > < code class ="language-markup "> <div data-tilt data-tilt-startX="20" data-tilt-startY="-20" data-tilt-reset-to-start="true"></div></ code > </ pre >
278
+ < p > < code class ="language-markup "> "reset-to-start"</ code > - on mouse leave will reset the position to [startX, startY]</ p >
274
279
</ div >
275
280
</ section >
276
281
@@ -363,6 +368,9 @@ <h3>Contributors</h3>
363
368
< li >
364
369
< a href ="https://github.com/rrroyal "> rrroyal</ a >
365
370
</ li >
371
+ < li >
372
+ < a href ="https://github.com/Pilskalns "> Andžs Pilskalns</ a >
373
+ </ li >
366
374
</ ul >
367
375
</ div >
368
376
< div class ="info ">
0 commit comments